Commit graph

1246 commits

Author SHA1 Message Date
fiddlosopher
a39865af03 Check to see if highlighting supported and run lhs tests if it is.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1542 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-02-14 16:25:39 +00:00
fiddlosopher
1a15c46eef Only run lhs tests if 'lhs' argument passed to RunTests.hs.
Reason:  these tests assume highlighting support has been
compiled in.  So, to avoid unexpected failures, we shouldn't
run them by default.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1541 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-02-14 16:10:19 +00:00
fiddlosopher
6033ea729c Updated test suites: regular paragraph before block quote.
Note:  rst writer doesn't handle block quote after code block
properly.  Ideally it would insert an empty comment to reset
indentation.  But this is not desirable in general before
code blocks.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1540 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-02-14 04:08:18 +00:00
fiddlosopher
0d2439949e Added lhs reader tests. (One case fails.)
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1539 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-02-14 04:08:06 +00:00
fiddlosopher
4a2fcd26cd Removed extraneous Text directory (now moved to src/).
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1538 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-02-10 01:45:29 +00:00
fiddlosopher
7955c44cb3 Added tests for lhs writers.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1537 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-02-07 19:20:49 +00:00
fiddlosopher
dcedb2f712 Fixed bug with header spacing in Markdown and RST writers.
A null header (Meta [] [] []) should not cause a blank line
at the beginning of output.  But a blank line is needed between
a non-null header and the main text.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1536 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-02-07 19:20:35 +00:00
fiddlosopher
a03331a3b4 Brought changelog up to date.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1535 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-02-02 22:42:44 +00:00
fiddlosopher
9b27f59fc2 Gobble space after Plain blocks containing only raw html inline.
Otherwise following header blocks are not parsed correctly,
since the parser sees blank space before them.  Resolves
Issue #124.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1534 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-31 18:30:44 +00:00
fiddlosopher
cdd3b67a05 Rewrote hsmarkdown in Haskell for portability.
For now, keeping the old shell script too.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1533 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-31 18:30:26 +00:00
fiddlosopher
ede0d805a0 Moved tabFilter to Shared.
Removed optPreserveTabs; instead, tabstop of 0 means preserve tabs.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1532 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-31 17:13:41 +00:00
fiddlosopher
5a9e3b7445 Renamed Main.hs -> pandoc.hs.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1531 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-31 17:13:30 +00:00
fiddlosopher
71ab63e0ba Changed srcdir in Makefile.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1530 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-31 17:13:21 +00:00
fiddlosopher
155809d220 Added TemplateHaskell to Extensions for executable, removed -threaded for library.
Thanks to duncan.coutts for the bug report.  Resolves Issue #121.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1529 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-25 17:55:47 +00:00
fiddlosopher
42aca57dee Moved all haskell source to src subdirectory.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1528 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24 20:00:26 +00:00
fiddlosopher
39e8d84866 Allow " as well as '' to end a latex double-quote.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1527 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24 19:59:24 +00:00
fiddlosopher
9da6912f7a Changed processIn -> processWith in sample plugin.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1526 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24 19:59:15 +00:00
fiddlosopher
cd3d22bd19 Code cleanup based on hlint suggestions.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1525 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24 19:59:07 +00:00
fiddlosopher
ed58846497 Fixed bug in mediawiki writer: improper closing tags in tables.
<th> instead of </th>, <td> instead of </td>.
Thanks to Benct Philip Jonsson for reporting the bug.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1524 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24 19:59:00 +00:00
fiddlosopher
2806aee9b2 Added --email-obfuscation option.
+ Added writer option for email obfuscation.
+ Implemented email obfuscation options in HTML writer.
+ Added option to option parser.
+ Documented in README and pandoc man page.
+ Resolves Issue #97.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1523 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24 19:58:48 +00:00
fiddlosopher
46a3b228fa Improved documentation for plugins in README.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1522 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24 19:58:33 +00:00
fiddlosopher
720e9ce3a5 Renamed processIn -> processWith, queryIn -> queryWith.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1521 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24 19:58:26 +00:00
fiddlosopher
066e1cfe90 Moved some Extra-Source-Files to Data-Files.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1520 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24 19:58:14 +00:00
fiddlosopher
874c3e0dea Added a plugin system, based on hint.
+ In Text.Pandoc.Definition, added processIn, processInM,
  and queryIn, and deprecated processPandoc and queryPandoc
  for these more general functions, which are useful in writing
  plugins.

+ Added module Text.Pandoc.Plugins.

+ Added a --plugins option to Main, and code to run the parsed pandoc
  document through all the plugins.

+ Provided five sample plugin files in the plugins/ directory.

+ Documented --plugin in the pandoc man page and README.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1519 788f1e2b-df1e-0410-8736-df70ead52e1b
2009-01-24 19:58:06 +00:00
fiddlosopher
243008242d Brought citeproc support up to date for citeproc-hs-0.2.
(Patch by Andrea Rossato.)


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1518 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-29 22:45:18 +00:00
fiddlosopher
df4d5b96c7 More fixes to get markdown writer working with pretty-1.0.1.0.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1517 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-29 00:32:09 +00:00
fiddlosopher
3a6bfd75cb Added Bug-Reports field to cabal file.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1516 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-23 02:57:00 +00:00
fiddlosopher
751aa15abc Fixed problems in RST and markdown output due to bug in pretty-1.0.1.0
+ Added hang' function to Text.Pandoc.Shared; this will be used instead
  of hang, which doesn't work properly in pretty-1.0.1.0.  When pretty
  is upgraded, we can go back to hang.
  See  http://article.gmane.org/gmane.comp.lang.haskell.general/16687
+ Use hang' (and some different techniques) in RST and markdown writers.
  Some output is now a bit different.
+ Modify test suites accordingly.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1515 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-17 15:34:25 +00:00
fiddlosopher
9ff729fc1e Added new listings include to LaTeX writer test.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1514 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-17 15:34:11 +00:00
fiddlosopher
37e4d91703 Mention WordPress EasyFilter in website.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1513 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-03 15:54:09 +00:00
fiddlosopher
0170f5e636 LaTeX header: Use fixed-width font for Haskell code.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1512 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:43:56 +00:00
fiddlosopher
f8ab1c7890 LaTeX reader: parse |inline lhs| if source is lhs.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1511 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:43:49 +00:00
fiddlosopher
d4b9307ce4 LaTeX and Markdown readers: Add sourceCode class to haskell code.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1510 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:43:42 +00:00
fiddlosopher
ebe9ac50b0 Added lhs support to RST reader.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1509 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:43:33 +00:00
fiddlosopher
c84c3b0c36 Added lhs support to RST writer.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1508 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:43:25 +00:00
fiddlosopher
cc176882bf Use +lhs suffixes in formats instead of options to trigger lhs.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1507 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:43:17 +00:00
fiddlosopher
4e122930f1 Modified README and man page to document lhs features.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1506 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:43:11 +00:00
fiddlosopher
22741eb8e8 Add definition of code environment to LaTeX header.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1505 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:43:02 +00:00
fiddlosopher
67508f986f Allow LaTeX-style code sections as well as bird-style in lhs markdown.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1504 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:42:55 +00:00
fiddlosopher
6359c789a7 Markdown writer: Use setext style headers only if --lhs-out specified.
Reason:  ghc doesn't like '#' characters in lhs comment sections.  See
http://www.haskell.org/pipermail/haskell-cafe/2008-December/051300.html


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1503 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:42:46 +00:00
fiddlosopher
9aecc17c1d Markdown writer: proper handling of block quotes in lhs mode.
If in lhs mode, put space before bird tracks for block quotes,
to prevent them from being interpreted as literate Haskell
source.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1502 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:42:38 +00:00
fiddlosopher
430e55c0f1 Handle --lhs-out option in HTML, LaTeX, and Markdown writers.
Documented lhs options in man page and README.

Note:  HTML output with --lhs-out is not strictly literate haskell,
but it is designed so that the result of copying and pasting the
page in the browser will be a literate haskell file.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1501 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:42:29 +00:00
fiddlosopher
48410d1df0 Added --lhs-out option.
+ Added writerLiterateHaskell to WriterOptions.
+ Added --lhs-out option to Main.
+ Added --lhs option (combines --lhs-out and --lhs-in)


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1500 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:42:16 +00:00
fiddlosopher
c815c2feab LaTeX reader: Added parser for literate haskell code blocks.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1499 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:42:08 +00:00
fiddlosopher
95c16bfa3b Moved failUnlessLHS to Text.Pandoc.Shared.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1498 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:42:00 +00:00
fiddlosopher
42ba781b3d Added literate haskell support for markdown reader.
+ Added stateLiterateHaskell to parser state.
+ Added parser for lhsCodeBlock to Markdown reader.
+ Added --lhs-in option, to treat input as literate haskell.
+ If first source has extension .lhs, assume --lhs-in.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1497 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-02 22:41:51 +00:00
fiddlosopher
035f0ff917 Conditionally depend on syb and base >= 4 if ghc >= 6.10.
Resolves Issue #109.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1496 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-01 04:54:29 +00:00
fiddlosopher
e5c28b37c2 Removed package-URL field from cabal file.
This pointed to an old version, and isn't really needed since the
cabal file comes with the source bundle.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1495 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-12-01 04:54:23 +00:00
fiddlosopher
996e1ad1b3 Markdown reader: relax spacing rules for $$ in display math.
Now space and newlines are allowed after the opening $$ and before the
closing $$. However, the display math cannot contain an entirely blank
line.  Resolves Issue #105.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1494 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-25 00:09:02 +00:00
fiddlosopher
cf8b8fc4dd Website: Updated links to distribution repositories.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1493 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-17 03:06:04 +00:00