John MacFarlane
f02080b62d
Textile reader: Implemented footnotes.
2010-12-08 00:44:46 -08:00
John MacFarlane
200ea33641
Made --smart work with RST reader.
2010-12-07 21:49:10 -08:00
John MacFarlane
ace3b80f1e
Smart punctuation: don't alllow ellipses containing spaces.
...
Previously we allowed '. . .', ' . . . ', etc. This caused
too many complications, and removed author's flexibility in
combining ellipses with spaces and periods.
2010-12-07 20:08:14 -08:00
John MacFarlane
50ca61ef49
Moved smartPunctuation from Markdown to Parsing.
...
+ Parameterized smartPunctuation on an inline parser.
+ Handle smartPunctuation in Textile reader.
2010-12-07 19:03:08 -08:00
John MacFarlane
f917b46500
Textile reader: implemented acronyms, (tm), (r), (c).
2010-12-07 18:28:36 -08:00
John MacFarlane
67445e7685
Fixed bugs in ieee.csl (Andrea Rossato).
2010-12-07 08:28:18 -08:00
John MacFarlane
5f283e4d47
Updated ieee citation test for punctuation-in-quote.
2010-12-07 08:14:26 -08:00
John MacFarlane
7864f30717
Markdown reader: handle curly quotes better.
...
Previously, curly quotes were just parsed literally, leading
to problems in some output formats. Now they are parsed as
Quoted inlines, if --smart is specified.
Resolves Issue #270 .
2010-12-06 20:36:58 -08:00
John MacFarlane
5a4609584c
Fix regression: markdown references should be case-insensitive.
...
This broke when we added the Key type. We had assumed that
the custom case-insensitive Ord instance would ensure case-insensitive
matching, but that is not how Data.Map works.
* Added a test case for case-insensitivity in markdown-reader-more
* Removed old refsMatch from Text.Pandoc.Parsing module;
* hid the 'Key' constructor;
* dropped the custom Ord and Eq instances, deriving instead;
* added fromKey and toKey to convert between Keys and Inline lists;
* toKey ensures that keys are case-insensitive, since this is the
only way the API provides to construct a Key.
Resolves Issue #272 .
2010-12-05 19:27:00 -08:00
Puneeth Chaganti
4d48abcb12
Added tests.
...
+ Added tables.org and writer.org to tests.
+ Added org.template to templates.
+ Changed RunTests.hs as required.
+ Minor changes to Org writer.
2010-12-04 23:49:53 +05:30
John MacFarlane
357b965b44
Merge branch 'citeproc' into master.
...
Conflicts:
src/Text/Pandoc/Definition.hs
2010-12-03 23:43:47 -08:00
John MacFarlane
d4e512776d
Textile reader: added hrule parser.
2010-12-03 23:10:52 -08:00
John MacFarlane
0356ad4de6
Textile reader: drop leading, trailing newline in pre block.
...
This is consistent with how the other readers work.
2010-12-03 23:10:52 -08:00
John MacFarlane
968748dec1
Textile reader: updated test suite to include raw HTML.
2010-12-03 23:10:52 -08:00
John MacFarlane
f415e9e119
Textile reader: parse raw by default.
...
It's part of the textile spec to allow raw HTML,
just as with markdown.
-R is no longer needed in test suite.
2010-12-03 23:10:52 -08:00
paul.rivier
c3866f3c66
punctuation handling, and more html-specific handling
2010-12-03 23:10:52 -08:00
Paul Rivier
d724c6b568
html inlines and html blocks handling in textile reader
2010-12-03 23:10:51 -08:00
Paul Rivier
fa0866886b
textile reader now ignores html/css attributes
2010-12-03 23:10:51 -08:00
Paul Rivier
593b4f6c94
fix autolink by promoting it in the parser list, fix table parabreak
2010-12-03 23:10:51 -08:00
Paul Rivier
a7da0672dc
more support for Textile reader (explicit links, images), tests and cabal entries
2010-12-03 23:10:51 -08:00
John MacFarlane
68d38db194
Revamped tests, using markdown output instead of HTML.
...
This is easier to inspect.
2010-11-28 10:03:05 -08:00
John MacFarlane
61b16116ce
Citation tests: removed spurious double-spaces.
2010-11-28 08:12:32 -08:00
John MacFarlane
b2e9f64984
Updated citation tests to use en-dash between ranges.
2010-11-28 08:10:01 -08:00
John MacFarlane
b10e82c9fa
Fixed spacing bug for reference-style citations.
2010-11-28 07:55:33 -08:00
John MacFarlane
e2e107cbed
Fixed spacing in ieee citation test.
...
(Test now fails pending citeproc update.)
2010-11-27 19:20:06 -08:00
John MacFarlane
f64983f879
Merge branch 'master' into citeproc
2010-11-27 14:58:23 -08:00
John MacFarlane
e9cfbd5adc
OpenDocument writer: don't print raw TeX.
2010-11-27 14:57:48 -08:00
John MacFarlane
8f1aed168b
Removed extra line break from citation test output.
2010-11-27 11:27:52 -08:00
John MacFarlane
54397a9e99
Merge branch 'master' into citeproc
2010-11-27 10:58:05 -08:00
John MacFarlane
1ffbb59823
Minor adjustment in textile test suite.
2010-11-27 10:56:46 -08:00
John MacFarlane
c989bf028f
Merge branch 'textile'
...
Conflicts:
README
man/man1/pandoc.1.md
pandoc.cabal
2010-11-27 10:52:44 -08:00
John MacFarlane
71c9316a59
Use [] for superscripts and subscripts in textile writer.
2010-11-27 10:44:58 -08:00
John MacFarlane
cae3f8edba
Fixed spacing problems in textile nested lists.
2010-11-27 10:44:35 -08:00
John MacFarlane
e8516ff337
Set HOME in RunTests.
...
Patch from Nathan Gass.
2010-11-26 11:48:22 -08:00
John MacFarlane
be909d2bfc
Fixed eol mistake in test.
2010-11-22 23:10:00 -08:00
John MacFarlane
3c7c1d8574
Changed markdown citation tests.
...
Now the tests are produced in HTML format (so we can see all
formatting). Also, we produce them in three different style,
chicago-author-date, ieee, and mhra.
2010-11-22 22:54:40 -08:00
John MacFarlane
8e71b5b279
Updated markdown-citations test for new citeproc changes.
2010-11-21 09:30:32 -08:00
John MacFarlane
f3bb3c1ff1
Markdown citation parser improvements and test updates.
...
Now we handle a suffix after a bare locator, e.g.
@item1 [p. 30, suffix]
The suffix now includes any punctuation that introduces it.
A few tests fail because of problems with citeproc (extra space
before the suffix, missing space after comma separating multiple
page ranges in the locator).
2010-11-18 13:22:20 -08:00
John MacFarlane
aaf7de0dda
Markdown reader: Revised parser for new citation syntax.
...
Suffixes and prefixes are now [Inline]. The locator is separated
from the citation key by a blank space. The locator consists of
one introductory word and any number of words containing at
least one digit. The suffix, if any, is separated from the locator
by a comma, and continues til the end of the citation.
2010-11-18 12:38:45 -08:00
John MacFarlane
7aecddd0f7
Replaced --biblio-file with --bibliography, removed --biblio-format.
...
Bibliography format is guessed from the file extension of the
bibliography.
Also, the bibliography entries are now read during option parsing.
2010-11-13 08:42:09 -08:00
John MacFarlane
1fa2973da6
Repairs to citation parser + citation test suite.
2010-11-12 19:30:59 -08:00
John MacFarlane
bf4d919989
Improvements to test suite for citations.
2010-11-12 18:46:34 -08:00
John MacFarlane
f272b81f85
Set LANG in test runner.
2010-11-12 18:40:16 -08:00
John MacFarlane
c44ff4c555
Added material for citation tests.
...
Currently they fail with a multibyte error from citeproc-hs
when it tries to read locale.
2010-11-12 00:38:31 -08:00
John MacFarlane
ca51bbbf16
HTML reader: don't parse raw HTML inside <code> tag.
...
Previously '<code><a>x</a></code>' would be parsed as
Code "<a>x</a>", which is not what you want.
2010-11-11 20:02:37 -08:00
John MacFarlane
21556e37f4
Allow HTML comments as inline elements in markdown.
...
So,
aaa <!-- comment --> bbb
can be a single paragraph.
2010-11-09 22:51:02 -08:00
John MacFarlane
905d194db5
Added test for macros.
2010-10-26 20:03:02 -07:00
John MacFarlane
7e9e959548
LaTeX & ConTeXt writers: escape [ and ] as {[} and {]}.
...
This avoids unwanted interpretation as optional arguments
in some contexts, which caused the brackets to silently
disappear!
2010-10-24 19:38:16 -07:00
John MacFarlane
6f75034bb9
Updated s5 tests.
2010-07-22 23:24:22 -07:00
John MacFarlane
da52412455
Extended --offline to s5.
...
S5 default is now to include links, rather than a full copy
of scripts and stylesheets.
2010-07-22 22:23:43 -07:00