Commit graph

  • 609a953a83 Updated package URL for pandoc.cabal and pandoc.cabal.ghc66. Updated pandoc.cabal.ghc66 with highlighting modules and new location for DefaultWriters. fiddlosopher 2008-02-24 05:48:22 +00:00
  • 50e660d346 Removed font-size 110% on code in web css. fiddlosopher 2008-02-24 05:48:18 +00:00
  • 48d5919331 Renamed web/code.txt -> code.text. Deleted code.text from top-level directory. fiddlosopher 2008-02-10 19:00:00 +00:00
  • 9a7ca4d9aa Minor changes due to changes in highlighting-kate API. defaultHighlightingCss now imported rather than duplicated. fiddlosopher 2008-02-10 18:59:54 +00:00
  • 9c9b41e8c6 Makefile: Add files in templates directory as dependencies for $(BUILDCONF). fiddlosopher 2008-02-10 18:59:44 +00:00
  • 0a48cb7de8 Added note about syntax highlighting to "Features" on web page. fiddlosopher 2008-02-10 18:59:40 +00:00
  • 742a465980 Support for startFrom="nn" to select starting line number in syntax highlighting. Changed argument of highlightHtml to Attr, not [String], for generality. fiddlosopher 2008-02-10 18:59:34 +00:00
  • 250a3e4dda Remove build dependencies on libghc6-regex-compat-dev, libghc6-uulib-dev and perl. roktas 2008-02-09 16:39:51 +00:00
  • 868aeace2d Renamed default headers with .header extension; have Setup.hs look for these. (This fixes a bug where Setup.hs would find .svn directories.) fiddlosopher 2008-02-09 03:30:59 +00:00
  • 968b34a96b Mark the package as UNRELEASED. roktas 2008-02-09 03:30:17 +00:00
  • a2acc54014 Moved code.txt -> code.text. fiddlosopher 2008-02-09 03:22:22 +00:00
  • d4e89c3cbe Revert "Added note in INSTALL about doing 'make templates' if installing using Cabal from svn." fiddlosopher 2008-02-09 03:22:07 +00:00
  • d4d905f8a8 Have --version print a list of supported languages for syntax highlighting. fiddlosopher 2008-02-09 03:22:01 +00:00
  • f6ea504b83 Updated README's instructions on delimited code blocks to include information about syntax highlighting. fiddlosopher 2008-02-09 03:21:57 +00:00
  • f8d16817c9 Added website demo for code highlighting. fiddlosopher 2008-02-09 03:21:52 +00:00
  • f8aa7a7be0 Updated INSTALL with instructions for compiling in syntax highlighting support. fiddlosopher 2008-02-09 03:21:44 +00:00
  • c55ac7cd84 CABALOPTS may now be specified with 'make'. For example: CABALOPTS=-fhighlighting make fiddlosopher 2008-02-09 03:21:39 +00:00
  • 04b32451be Added build option for syntax highlighting, with *optional* dependency on highlighting-kate. + pandoc.cabal includes a flag, 'highlighting', that causes a dependency on highlighting-kate. + if Setup.hs detects this dependency, it copies templates/Highlighting.yes.hs to Text/Pandoc/Highlighting.hs. Otherwise, it copies templates/Highlighting.no.hs. + The HTML writer imports this new module instead of Text.Highlighting.Kate. The new module exports highlightHtml, which either uses highlighting-kate to perform syntax highlighting or automatically returns a failure code, depending on whether highlighting support was selected. + --version now prints information about whether syntax highlighting support is compiled in. fiddlosopher 2008-02-09 03:21:19 +00:00
  • 427c2e484d Modified Setup.hs with new location for DefaultHeaders.hs. Print template notice on top of autogenerated source files. fiddlosopher 2008-02-09 03:21:09 +00:00
  • ba6981a4a1 Removed Text.Regex dependencies by rewriting using plain Haskell: + from Text.Pandoc.Writers.RTF + from Text.Pandoc.Writers.HTML + from Main + from pandoc.cabal fiddlosopher 2008-02-09 03:21:04 +00:00
  • 087739ad7a Moved Text.Pandoc.Writers.DefaultHeaders -> Text.Pandoc.DefaultHeaders. fiddlosopher 2008-02-09 03:20:55 +00:00
  • e361c5883d Makefile: only use --with-hc-pkg if GHC_PKG is defined. Note that Cabal will automatically choose the ghc-pkg appropriate for the compiler selected, so normally specifying GHC by itself is sufficient. fiddlosopher 2008-02-09 03:20:48 +00:00
  • 446a964a19 Incorporated templates phase into Setup.hs and improved templates. + Removed templates/Makefile and fillTemplates.pl. + Removed 'templates' Makefile target. + Added postConf hook to Setup.hs that fills the templates. + Use compressed javascripts for S5 and ASCIIMathML templates. + Revised test suite. fiddlosopher 2008-02-09 03:20:42 +00:00
  • c150e84d3c Add default CSS to document header if syntax highlighting used. fiddlosopher 2008-02-09 03:20:25 +00:00
  • c492787647 Added code.txt to web/ for demos. fiddlosopher 2008-02-09 03:20:18 +00:00
  • b3709022ef Added preliminary support for syntax highlighting to HTML writer. fiddlosopher 2008-02-09 03:20:13 +00:00
  • 6bd25a10a2 Included highlighting-kate in build-depends. fiddlosopher 2008-02-09 03:20:06 +00:00
  • 06b544360e Factored codeBlock into separate codeBlockIndented and codeBlockDelimited. Do not use codeBlockDelimited in strict mode. fiddlosopher 2008-02-09 03:20:02 +00:00
  • db0d658e9c Updated test suite to new baseline (but no tests yet for new code block syntax). fiddlosopher 2008-02-09 03:19:54 +00:00
  • 614547b38e Use generic attributes type, not a string, for CodeBlocks. fiddlosopher 2008-02-09 03:19:43 +00:00
  • 705340824d Documentation for delimited code blocks. fiddlosopher 2008-02-09 03:19:29 +00:00
  • f2354590f9 Put language class information in pre tag, not code tag, in HTML code blocks. fiddlosopher 2008-02-09 03:19:24 +00:00
  • 2e683e8b53 Fixed delimited code blocks: eat blank lines afterwards, and allow end line to contain more tildes than beginning line. fiddlosopher 2008-02-09 03:19:17 +00:00
  • 24f22ee7ac Added a needed try to {} attribute parser. fiddlosopher 2008-02-09 03:19:10 +00:00
  • 046c6b0d0d Added support for multiple classes in delimited code block. fiddlosopher 2008-02-09 03:19:01 +00:00
  • b06ddad4bc Initial support for delimited code blocks in markdown reader. fiddlosopher 2008-02-09 03:18:54 +00:00
  • 769e2f3cf5 HTML writer: if language specified for code block, print as <code> class. fiddlosopher 2008-02-09 03:18:47 +00:00
  • fa0ab8617a Modified tests for new argument in CodeBlock. fiddlosopher 2008-02-09 03:18:38 +00:00
  • 2c13782fdf Modified writers for new argument place in CodeBlock. fiddlosopher 2008-02-09 03:18:22 +00:00
  • 9f7a14c210 Modified readers for new parameter in CodeBlock. fiddlosopher 2008-02-09 03:18:03 +00:00
  • 6a921f0966 Added parameter for class to CodeBlock (for syntax highlighting). fiddlosopher 2008-02-09 03:17:49 +00:00
  • 1a80813009 * Debian packaging changes: roktas 2008-02-09 03:12:03 +00:00
  • 76c49ebc63 Added note in INSTALL about doing 'make templates' if installing using Cabal from svn. fiddlosopher 2008-01-24 23:05:23 +00:00
  • d3a179cdfc Added \setupitemize[autointro] to ConTeXt header, to prevent orphaned list introduction lines. fiddlosopher 2008-01-23 02:17:59 +00:00
  • 6da5be1d0f website: Added math.text to dependencies for examples.html in Makefile. fiddlosopher 2008-01-23 02:17:47 +00:00
  • 17f516fc15 Moved math.txt -> math.text on web page, so it won't be confused with page source. fiddlosopher 2008-01-23 02:17:42 +00:00
  • 790fd4612b Changed names of HTML man pages to *.1.html on website. fiddlosopher 2008-01-23 02:17:35 +00:00
  • 42359e63c9 Fixed bug in RST reader, which would choke on: "p. one\ntwo\n". Added some try's in ordered list parsers. fiddlosopher 2008-01-17 02:14:20 +00:00
  • 8f8888df2e Updated INSTALL with instructions for getting GHC + libraries using apt-get. fiddlosopher 2008-01-16 18:22:18 +00:00
  • d474852f56 Removed unnecessary imports. fiddlosopher 2008-01-16 02:18:23 +00:00
  • 155ef838d7 Added Arch linux instructions to INSTALL. fiddlosopher 2008-01-14 05:12:16 +00:00
  • 6795ffd93f Bumped version to 0.47. fiddlosopher 2008-01-08 20:25:46 +00:00
  • c453e2f7d5 Made -c/--css option repeatable on the command line (like -H, -A, -B). Documented repeatability of these options in README. fiddlosopher 2008-01-08 20:21:28 +00:00
  • 936465ade0 Updated website with news of version 0.46 release. fiddlosopher 2008-01-08 19:57:27 +00:00
  • 690677e443 Added some details to RELEASE-CHECKLIST. fiddlosopher 2008-01-08 19:42:09 +00:00
  • 93079002dc Removed redundant DISTNAME field from freebsd Makefile template. fiddlosopher 2008-01-08 19:42:06 +00:00
  • 8fca649d05 Changed copyright dates where appropriate to include 2008. fiddlosopher 2008-01-08 17:26:16 +00:00
  • a7a519e04c Changed dates on documentation. fiddlosopher 2008-01-08 17:25:57 +00:00
  • 3c7498455e Removed unneeded link reference from website index.txt.in. fiddlosopher 2008-01-08 17:09:14 +00:00
  • 2df432dc60 Changed comment used to replace unsafe HTML if sanitize-html option selected. fiddlosopher 2008-01-08 04:53:01 +00:00
  • 71e508f98a * Debian packaging changes: roktas 2008-01-08 04:00:35 +00:00
  • 65e118ec58 Updated changelog. fiddlosopher 2008-01-07 18:44:52 +00:00
  • b9e30ca8b7 RST reader: Fixed bug in parsing explicit links (resolves Issue ). The problem was that we were looking for inlines until a '<' character signaled the start of the URL. So if you hit a reference-style link, it would keep looking til the end of the document. Fix: change inline => (notFollowedBy (char '`') >> inline). Note that this won't allow code inlines in links, but these aren't allowed in resT anyway. fiddlosopher 2008-01-06 19:46:55 +00:00
  • 85657add6a RST reader: cleaned up parsing of reference names in key blocks and links. Allow nonquoted reference links to contain isolated '.', '-', '_', so so that strings like 'a_b_' count as links. fiddlosopher 2008-01-06 19:46:43 +00:00
  • e4837c140c RST reader: Removed unnecessary check for following link in str. This is unnecessary now that link is above str in the definition of 'inline'. fiddlosopher 2008-01-06 19:46:38 +00:00
  • d271473044 Fixed markdown reader to handle "*hi **there***" as a strong nested in an emph. (A '*' is only recognized as the end of the emphasis if it's not the beginning of a strong emphasis.) fiddlosopher 2008-01-06 19:46:31 +00:00
  • 0e94609e18 Markdown reader: Moved blockQuote parser before list parsers. fiddlosopher 2008-01-06 19:46:24 +00:00
  • 0b3ffbf339 Added RELEASE-CHECKLIST. fiddlosopher 2008-01-06 19:46:18 +00:00
  • 0921704d92 Use an interpreted text role to render math in restructuredText. See http://www.american.edu/econ/itex2mml/mathhack.rst for the strategy. fiddlosopher 2008-01-04 18:59:00 +00:00
  • ec3f6b649f Refactored RST writer to usea record instead of a tuple for state, and to include options in state so it doesn't need to be passed as a parameter. fiddlosopher 2008-01-04 18:58:50 +00:00
  • 5df912b162 Added optional HTML sanitization using a whitelist. When this option is specified (--sanitize-html on the command line), unsafe HTML tags will be replaced by HTML comments, and unsafe HTML attributes will be removed. This option should be especially useful for those who want to use pandoc libraries in web applications, where users will provide the input. fiddlosopher 2008-01-03 21:32:32 +00:00
  • a505f70f0b Made -H, -A, and -B cumulative: if they are specified multiple times, multiple files will be included. fiddlosopher 2008-01-01 20:43:48 +00:00
  • e37df6db69 Fixed bug in the markdown reader: HTML preceding a code block could cause it to be parsed as a paragraph. (The problem is that the HTML parser used to eat all blank space after an HTML block, including the indentation of the code block.) Resolves Issue . + In Text.Pandoc.Readers.HTML, removed parsing of following space from rawHtmlBlock. + In Text.Pandoc.Readers.Markdown, modified rawHtmlBlocks so that indentation is eaten *only* on the first line after the HTML block. This means that in <div> foo <div> the foo won't be treated as a code block, but in <div> fiddlosopher 2007-12-31 01:02:44 +00:00
  • ad5cbb78d0 HTML reader: Finished fixing Issue . Contents of script tags were still being treated as markdown when the script tags were parsed as inline. Fixed by moving "script" from the list of tags that can be either block or inline to the list of block tags. fiddlosopher 2007-12-31 00:45:54 +00:00
  • d989a78b3b HTML reader: Don't interpret contents of style tags as markdown. Resolves Issue . + Added htmlStyle, analagous to htmlScript. + Use htmlStyle in htmlBlockElement and rawHtmlInline. fiddlosopher 2007-12-31 00:05:03 +00:00
  • 6e1a652429 Fixed bug in HTML reader: it was looking for <IT> tag, not <I>. fiddlosopher 2007-12-30 02:21:01 +00:00
  • 6c1f9c8e39 Made LaTeX reader properly recognize --parse-raw in rawLaTeXInline. Updated LaTeX reader test to use --parse-raw. fiddlosopher 2007-12-30 02:07:55 +00:00
  • a465c4f659 Changed handling of titles in HTML writer so you don't get "titleprefix - " followed by nothing. fiddlosopher 2007-12-29 21:11:33 +00:00
  • 5e65598b9e Use wrappers around Doc elements to ensure proper spacing in ConTeXt writer. Each block element is wrapped with either Pad or Reg. Pad'ed elements are guaranteed to have a blank line in between. Updated ConTeXt tests. fiddlosopher 2007-12-29 09:31:45 +00:00
  • f74dda27b6 Markdown reader: Make 'block' conditional on strictness state, instead of using failIfStrict in block parsers. Use a different ordering of parsers in strict mode: raw HTML block before paragraph. This recovers performance that was lost in strict mode with r1154. fiddlosopher 2007-12-29 06:30:12 +00:00
  • 05cbdf04fd Markdown: better handling of parentheses in URLs and quotation marks in titles. + source parser first tries to parse URL with balanced parentheses; if that doesn't work, it tries to parse everything beginning with '(' and ending with ')'. + source parser now uses an auxiliary function source'. + linkTitle parser simplified and improved, under assumption that it will be called in context of source'. fiddlosopher 2007-12-24 04:22:41 +00:00
  • ee6f06ec05 Modified markdown reader to disallow links within links. (Resolves Issue #35.) + Replaced inlinesInBalanced with inlinesInBalancedBrackets, which instead of hard-coding the inline parser takes an inline parser as a parameter. + Modified reference and inlineNote to use inlinesInBalancedBrackets. + Removed unneeded inlineString function. + Added inlineNonLink parser, which is now used in the definition of reference. + Added inlineParsers list and redefined inline and inlineNonLink parsers in terms of it. + Added failIfLink parser. fiddlosopher 2007-12-24 04:22:31 +00:00
  • 97992e6f7b Improved handling of raw HTML in Markdown reader. (Resolves Issue #36.) Tags that can be either block or inline (e.g. <ins>) should be treated as block when appropriate and as inline when appropriate. Thus, for example, <ins>hi</ins> should be treated as a paragraph with inline <ins> tags, while <ins> fiddlosopher 2007-12-24 04:22:20 +00:00
  • dad8e16330 Changed failure message in anyHtmlBlockTag (minor change). fiddlosopher 2007-12-24 04:22:08 +00:00
  • 6802d287cf Modified rawHtmlBlock in HTML reader so it parses </html> and </body> tags. This allows these tags to be handled correctly in Markdown. HTML reader now uses rawHtmlBlock', which excludes </html> and </body>, since these are handled in parseHtml. (Resolves Issue #38.) fiddlosopher 2007-12-23 03:46:12 +00:00
  • fbecb49790 Modified 'source' parser in Markdown reader to allow backslash escapes in URLs. So, for example, [my](/url\(1\)) yields a link to /url(1). Resolves Issue . fiddlosopher 2007-12-21 22:31:20 +00:00
  • 48f2cc5600 Modified rules for HTML header identifiers to ensure legal identifiers. + Modified htmlListToIdentifier and uniqueIdentifier in HTML writer to ensure that identifiers begin with an alphabetic character. + The new rules are described in README. + Resolves Issue . fiddlosopher 2007-12-21 19:25:54 +00:00
  • 0681d1d3e7 Fixed handling of email addresses in markdown and reStructuredText. Consolidated uri and email address parsers. (Resolves Issue #37.) + New emailAddress and uri parsers in Text.Pandoc.Shared. uri parser uses parseURI from Network.URI. emailAddress parser properly handles email addresses with periods in them. + Removed uri and emailAddress parsers from Text.Pandoc.Readers.RST. + Removed uri and emailAddress parsers from Text.Pandoc.Readers.Markdown. fiddlosopher 2007-12-21 16:13:10 +00:00
  • 246e5f9ea3 Bumped version number to 0.46. fiddlosopher 2007-12-10 21:01:59 +00:00
  • 46a2d9269c Added date to release note on website. fiddlosopher 2007-12-09 20:15:52 +00:00
  • 7a68e64162 Use \{0,1\} instead of \? in sed, so it works on BSD/Mac OSX too. fiddlosopher 2007-12-08 23:00:40 +00:00
  • 0bf553142c Updated website. fiddlosopher 2007-12-08 23:00:35 +00:00
  • fa029799e6 Makefile website target: create changelog.txt, not changelog. This ensures that browsers will treat it as text. fiddlosopher 2007-12-08 23:00:28 +00:00
  • aea6f6802b Removed support for "box-style" block quotes in markdown. This adds unneeded complexity and makes pandoc diverge further than necessary from other markdown extensions. Brought documentation, tests, and debian/changelog up to date. fiddlosopher 2007-12-08 19:32:18 +00:00
  • 1fa54ab190 Updated debian/changelog. fiddlosopher 2007-12-06 00:36:44 +00:00
  • 702bb47450 Added new HTML math demos to website. Revamped mkdemos.pl for simplicity. fiddlosopher 2007-12-04 04:14:38 +00:00
  • 6cfe6c250a Adjusted test suite for footnote changes in LaTeX and ConTeXt writers. fiddlosopher 2007-12-04 04:14:27 +00:00
  • 13b1b87efc Improvements to LaTeX and ConTeXt footnote handling: + ConTeXt: } at end of footnote now occurs on a new line when the footnote ends with \stoptyping, just as in LaTeX writer. + LaTeX and ConTeXt: \footnote is no longer indented. The indentation causes problems with wrapping, as it makes the line too long. fiddlosopher 2007-12-04 04:14:16 +00:00
  • 3dc0a9141c If gladtex specified, don't prettyprint <EQ> tags, or gladtex gets confused. fiddlosopher 2007-12-02 16:49:11 +00:00
  • af2ea8647b Small fix to error handling in TeXMath parser: fiddlosopher 2007-12-02 16:29:14 +00:00