Commit graph

1208 commits

Author SHA1 Message Date
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
fiddlosopher
72fd19811b LaTeX writer: fixed bug with empty table cells.
Resolves Issue #107.  Thanks to rodja.trappe for the patch.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1492 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-11 03:02:56 +00:00
fiddlosopher
5cd286aa45 Website demos: removed escaping of -.
Instead, don't use -S for examples.html.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1491 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-07 16:32:15 +00:00
fiddlosopher
c1272dee93 Fixed problem in mkdemos.pl:
Backslashes were being added before dashes in code samples.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1490 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-06 22:12:18 +00:00
fiddlosopher
95efec1e62 Updated location of odt-styles in pandoc.cabal.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1488 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-06 17:12:02 +00:00
fiddlosopher
81a96d880e Updated website index page.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1486 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-06 17:04:34 +00:00
fiddlosopher
299149e10d Updated changelog.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1485 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-06 16:55:27 +00:00
fiddlosopher
22549e19c6 Fixed parsing of RST comment blocks.
Modified 'unknown directive' in RST reader.
Added RST reader tests for comment blocks.
Resolves Issue #86 and Debian Bug#500662.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1484 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-06 16:49:45 +00:00
fiddlosopher
f0e7d25592 Bumped version in windows installer to 1.1.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1483 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-02 18:06:52 +00:00
fiddlosopher
38cc5fee68 Updated changelog.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1482 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-02 16:44:33 +00:00
fiddlosopher
c02e0f76fe Revert "Markdown reader: Ignore blank line after ~~~~~~~~ in delimited code blocks."
This reverts commit 7ad17fe5cf.
We will soon have a better way of handling literate haskell.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1481 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-02 16:44:26 +00:00
fiddlosopher
412315b530 Markdown reader: Allow blank space at end of horizontal rules.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1480 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-01 22:58:44 +00:00
fiddlosopher
a24d107e6f Support horizontal rules in OpenDocument and ODT writers.
Added style for Horizontal_20_Rule to odt-styles/styles.xml.
Add support for horizontal rules in OpenDocument writer.
Resolves Issue #95.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1479 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-01 22:44:53 +00:00
fiddlosopher
aecca4959d Corrected mispelling (Defnition) in odt styles.xml.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1478 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-01 22:44:40 +00:00
fiddlosopher
0e4eb83749 Markdown reader: cleaner handling of spaces in URLs.
Consecutive spaces are now collapsed into one %20, and
final spaces are removed.  Also, a test case has been added.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1477 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-11-01 21:05:33 +00:00
fiddlosopher
c43e40904e Updated changelog.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1476 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-31 22:35:47 +00:00
fiddlosopher
ddf2dc6896 Markdown reader: allow URLs containing spaces.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1475 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-31 22:34:38 +00:00
fiddlosopher
1aeef232c8 Updated changelog.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1474 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-30 01:03:13 +00:00
fiddlosopher
2ed83d7921 Version bump to 1.1.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1473 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-30 01:03:06 +00:00
fiddlosopher
4f28d47b90 Added --jsmath option.
- Added --jsmath option to Main.hs
- Added JsMath to HTMLMathMethod in Text.Pandoc.Shared.
- Handle math appropriately in HTML writer when JsMath selected.
- Documented the option in README and man page.

Resolves Issue #68.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1472 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-28 21:54:50 +00:00
fiddlosopher
096413b2f3 Fixed Setup.hs so correct status is returned after build.
Previously an error status was returned even after a normal
build. Resolves Issue #100.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1471 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-27 21:52:31 +00:00
fiddlosopher
0b3d8581a3 Changed compactify in Text.Pandoc.Shared - better heuristic.
Final Para is changed to Plain if all other list items *end* with
a Plain block.  Addresses Issue #99.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1470 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-25 22:07:45 +00:00
fiddlosopher
66d459a545 Don't print a line break between a footnote and immediately following nonspace
in LaTeX and ConTeXt output, as it is interpreted as a space.
This is problematic for cases like "text^[note]---".
Modified wrappedTeX (in Text.Pandoc.Shared).  Resolves Issue #93.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1469 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-19 00:33:12 +00:00
fiddlosopher
a2422504ff HTML reader: Don't interpret contents of <pre> blocks as markdown.
Added rawVerbatimBlock parser.  Resolves Issue #94.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1468 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-18 23:42:23 +00:00
fiddlosopher
5b422262d3 Include classes on tr elements in HTML output: "header", "odd", "even".
This allows tables to be styled with lines in alternating colors.
Resolves Issue #91.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1467 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-18 23:14:59 +00:00
fiddlosopher
2122aa5359 Changed date on copyright message in Main.hs.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1466 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-18 23:14:48 +00:00
fiddlosopher
1b4a79726a pandoc-setup.iss: Don't require admin privileges to run installer.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1465 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-18 18:48:31 +00:00
fiddlosopher
1aed6a9ee4 Modified modpath.iss to modify HKCU path if user lacks admin privileges.
Also fixed case where oldpath is empty (previously this led to the new
path beginning with a semicolon).


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1464 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-18 18:48:23 +00:00
fiddlosopher
51a58987b3 Bump version to 1.0.0.2.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1463 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-16 01:00:59 +00:00
fiddlosopher
f08ebf5a9b Added colons to protocols in unsanitaryURI in HTML reader.
Closes Issue #88.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1462 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-16 01:00:51 +00:00
fiddlosopher
d0fe8dcae0 Add BUGS to files in tarball.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1461 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-16 01:00:42 +00:00
fiddlosopher
d318c0e376 Removed empty Codec and System directories.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1460 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-10-08 17:03:47 +00:00
fiddlosopher
c4c77517e9 Have the '-v' option print syntax highlighting languages separated by commas,
and wrapped in lines, instead of in five columns as before.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1459 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-09-30 20:16:03 +00:00
fiddlosopher
3b58456673 Moved odt-styles/ to data/. Removed unneeded variable in Makefile.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1458 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-09-23 15:55:30 +00:00
fiddlosopher
fcb220a7a4 Removed debian directory.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1457 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-09-23 15:49:05 +00:00
fiddlosopher
d1d614b8ef Have "runhaskell Setup test" return an error status if tests fail.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1456 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-09-22 21:26:54 +00:00
fiddlosopher
caadac70cd Adjusted s5.fancy.html in tests/ to conform to new LaTeXMathML policy
(span class="LaTeX").


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1455 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-09-16 01:39:13 +00:00
fiddlosopher
7ad17fe5cf Markdown reader: Ignore blank line after ~~~~~~~~ in delimited code blocks.
Rationale:  these are useful for literate haskell, but lhs requires
a blank line before the haskell code, and we don't want spurious
 blank lines in the output.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1454 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-09-16 01:39:05 +00:00
fiddlosopher
4d5c71e183 HTML writer: Enclose all LaTeXMathML bits in <span class="LaTeX">.
This prevents parts of the document that are not math from being
interpreted as math by LaTeXMathML.js.


git-svn-id: https://pandoc.googlecode.com/svn/trunk@1453 788f1e2b-df1e-0410-8736-df70ead52e1b
2008-09-15 22:43:21 +00:00