John MacFarlane
5ba1e92440
Updated chicago-author-date.csl.
...
The old version did not work properly for edited volumes
with no author.
2011-11-18 13:36:27 -08:00
John MacFarlane
f6a0e75389
Supported tables in asciidoc, added table tests.
2011-11-18 13:19:22 -08:00
John MacFarlane
fc1c17b174
Added an asciidoc writer (partial).
...
Still TODO:
- documentation in README
- add default.asciidoc to templates/
- lists
- tables
- proper escaping
- footnotes with blank lines - print separately at end?
currently they are just ignored.
- fix header (date gives weird result on pandoc README)
2011-11-16 19:14:55 -08:00
John MacFarlane
1da1d4ec24
Updated writer tests for new version of texmath.
2011-11-12 13:25:02 -08:00
John MacFarlane
d74e8d14a5
Markdown citations: don't strip off initial space in locator.
...
Previously `[@item1 and nowhere else]` yielded the locator ", and nowhere
else", or, with the new citeproc-hs, "and nowhere else".
Now it yields " and nowhere else".
2011-11-09 13:18:01 -08:00
John MacFarlane
6a51897f33
Fixed markdown-citations.ieee.txt to use em-dashes for citation ranges.
...
This is a new feature in citeproc-hs.
2011-11-09 12:57:47 -08:00
John MacFarlane
821286a6f3
Update templates to use Content-Style-Type meta tag.
...
Closes #337 .
2011-11-08 11:54:10 -08:00
John MacFarlane
c335b6cbd8
HTML slides: only add id to div/section if --section-divs selected.
2011-10-02 23:19:03 -07:00
John MacFarlane
072df3f5dd
Simplified slide creation in HTML writer.
...
A horizontal rule now gets transformed into an empty H1 header
before 'hierarchicalize' is called.
If the document that does not begin with an H1 header, an
empty one is provided.
This avoids the need for kludgy raw HTML.
Also, the 'titleslide' class is added to any section containing
just a title:
----
----
2011-10-02 11:49:56 -07:00
John MacFarlane
2c15a876d8
Updated to use revised context template.
2011-08-25 09:39:20 -07:00
John MacFarlane
24095e0615
ConTeXt writer: Changed 'descr' to 'description', fixed alignment.
2011-08-20 15:30:57 -07:00
John MacFarlane
55b3d0f7c3
Fixed ConTeXt writer tests.
2011-08-18 19:29:22 -07:00
John MacFarlane
15eb713e5d
Fixed opendocument writer test.
2011-08-18 12:15:55 -07:00
John MacFarlane
cbd0314b1b
Changes to tests for new latex templates.
2011-07-30 17:02:49 -07:00
John MacFarlane
44e2dc68ac
Updated lhs tests with CDATA.
2011-07-29 20:14:11 -07:00
John MacFarlane
a3327835be
Docbook writer: Use programlisting for code blocks.
...
Instead of screen, as before.
2011-07-24 23:36:30 -07:00
John MacFarlane
07c7cd1945
Docbook writer: Use CALS tables (instead of XHTML tables).
...
Reason: Some older docbook software does not work with XHTML
tables.
Closes #77 .
2011-07-24 23:24:03 -07:00
John MacFarlane
3162adbd9b
HTML writer: Removed English title on footnote back links.
...
This is incongruous in non-English documents.
2011-07-24 16:24:27 -07:00
John MacFarlane
cb6123a2db
Updated s5 tests.
2011-07-24 09:17:06 -07:00
John MacFarlane
12110f3282
HTML writer: Display author and date after title.
2011-07-23 11:26:11 -07:00
John MacFarlane
856f1d2b42
Use different hyperref options for xetex.
...
This fixes problems with unicode bookmarks on xetex.
Thanks to CircleCode.
2011-07-23 09:54:42 -07:00
John MacFarlane
0defa07c27
LaTeX writer: New template.
2011-07-23 09:44:36 -07:00
John MacFarlane
d611568237
Updated tests for new latex templates.
2011-07-22 13:56:04 -07:00
John MacFarlane
0cf2a631e8
LaTeX writer: Use \texttt and escapes instead of \verb!..!.
...
\verb is simply too fragile; it doesn't work inside command
arguments.
2011-07-22 12:19:34 -07:00
John MacFarlane
6c029621ed
LaTeX reader & writer: Use \and to separate authors.
...
Closes #279 .
2011-07-21 10:09:51 -07:00
John MacFarlane
71736869bb
ConTeXt writer: Made \start/stoptyping flush with margin.
...
This prevents extra blank lines.
2011-07-19 16:29:33 -07:00
John MacFarlane
8fd3d0bdbb
LaTeX writer: make verbatim environments flush to avoid extra space.
...
The indented `\end{verbatim}` was causing an extra blank line in
the output.
Closes #277 .
2011-07-19 16:25:01 -07:00
John MacFarlane
b5da7adfb8
Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
...
Also do this when copying image files into EPUBs and ODTs.
Closes #263 .
2011-07-16 14:19:45 -07:00
John MacFarlane
dd59cd2341
HTML reader: treat Plain as Para when needed.
...
For example, in
Just a few glitches remaining.
<ul><li> In this situation, one loses the list.
</ul>
And in this, the preformatting.
<pre>Preformatted text not starting with its own blank line.
</pre>
Thansk to Dirk Laurie for noticing the issue.
2011-07-16 09:42:16 -07:00
John MacFarlane
b30afc2009
Merge pull request #273 from qerub/master
...
Textile reader: Make it possible to have colons after links.
2011-07-11 08:31:29 -07:00
John MacFarlane
b5411c06aa
Improved LaTeX tables.
...
* Use ctable package, which allows footnotes and
provides additional options.
* Made cell alignments work in multiline tables.
* Closes #272 .
2011-07-10 12:33:45 -07:00
Christoffer Sawicki
8fa4e8bff1
Textile reader: Make it possible to have colons after links.
2011-07-10 16:30:14 +02:00
John MacFarlane
cfaa9acd18
Fixed Slidy/S5 output to allow --section-divs.
...
This is also a cleaner way of inserting the slide divs.
Resolves Issue #296 .
2011-04-16 12:16:24 -07:00
John MacFarlane
6beba76f61
Changed uri parser so it doesn't include trailing punctuation.
...
So, in RST, 'http://google.com .' should be parsed as a link
to 'http://google.com ' followed by a period.
The parser is smart enough to recognize balanced parentheses,
as often occur in wikipedia links: 'http://foo.bar/baz_(bam) '.
Also added ()s to RST specialChars, so '(http://google.com )'
will be parsed as a link in parens.
Added test cases.
Resolves Issue #291 .
2011-03-18 11:30:20 -07:00
John MacFarlane
d1304e8356
OpenDocument writer: Use "First paragraph" style after most non-para blocks.
...
(Not just headers, as in the last patch.)
Patch from Andrea Rossato, slightly modified by JM.
2011-03-16 12:35:32 -07:00
John MacFarlane
e24ce1c11d
OpenDocument: Use special style for 1st para after heading.
...
"First paragraph" as opposed to "Text body." This allows
users to specify e.g. that only paragraphs after the first
paragraph of a section are to be indented.
Thanks to Andrea Rossato for the patch.
Closes github Issue #20 .
2011-03-12 13:38:04 -08:00
John MacFarlane
21bd73ddaf
Fixed lhs-test.nohl tests.
...
A previous commit accidentally overwrote them with highlighted tests.
2011-03-04 11:11:01 -08:00
John MacFarlane
84bf846503
LaTeX writer: Changed figure defaults to htbp.
...
This prevents "too many unprocessed floats." Resolves
Issue #285 .
2011-02-11 19:03:46 -08:00
John MacFarlane
bdf23d3a5d
Improved HTML table output (line breaks).
2011-02-04 23:35:10 -08:00
John MacFarlane
bb89fd9959
Updated tests.
2011-02-04 23:09:51 -08:00
John MacFarlane
ce4f9a3787
HTML writer: Spacing adjustments for Plain and RawHtml blocks.
2011-02-04 21:05:48 -08:00
John MacFarlane
90647a56f6
Updated tests for new HTML format.
...
Verified against old tests using tidy and diff.
2011-02-04 20:38:08 -08:00
John MacFarlane
9f28acba9d
Fixed highlighting for inline code.
...
highlightHtml in Highlighting now has a boolean argument that
selects between inline and block content.
Revised tests for new highlighting-kate.
2011-01-29 16:04:07 -08:00
John MacFarlane
570d8ff08c
Moved tests to src.
2011-01-29 11:24:16 -08:00
John MacFarlane
0833daff4a
Added Tests.Shared with normalize round-trip tests.
2011-01-29 10:03:24 -08:00
John MacFarlane
18089a44f5
Tests.Arbitrary: don't allow empty list items.
2011-01-29 10:02:12 -08:00
John MacFarlane
e9899b9ab8
Removed intentionally failing test in ConTeXt writer tests.
2011-01-29 09:04:05 -08:00
John MacFarlane
d8c9b0c6f7
Added biblatex citation tests to Tests.Readers.LaTeX.
...
Removed old biblatex-citations.latex.
2011-01-29 09:01:30 -08:00
John MacFarlane
7961208aaf
Added natbib citation tests to Tests.Readers.LaTeX.
...
Removed old tests/natbib-citations.latex.
2011-01-29 08:47:00 -08:00
John MacFarlane
382564ed9e
RTF writer: Embed images when possible.
...
* Resolves Issue #275 .
* PNG and JPEG supported.
* Export rtfEmbedImage.
2011-01-28 08:42:04 -08:00
John MacFarlane
0acf774011
Added Tests.Readers.Markdown.
2011-01-26 22:09:09 -08:00
John MacFarlane
f8dca6ccbc
Add support for attributes in inline Code.
...
Additional related changes:
* URLs in Code in autolinks now use class "url".
* Require highlighting-kate 0.2.8.2, which omits the final <br/> tag,
essential for inline code.
2011-01-26 20:44:25 -08:00
John MacFarlane
703c421c9e
RST reader: Improved field lists.
...
Field lists now work properly with block content.
(Thanks to Lachlan Musicman for pointing out the bug.)
In addition, definition list items are now always Para instead
of Plain -- which matches behavior of rst2xml.py.
Finally, in image blocks, the alt attribute is parsed properly
and used for the alt, not also the title.
2011-01-26 17:23:57 -08:00
John MacFarlane
066cbbad76
Added RST reader tests.
2011-01-26 17:23:56 -08:00
John MacFarlane
c5384a33c0
Updates for compiling with ghc 7.
...
We now use a CPP trick to have compatible quasiquotes that
work in both GHC 6.12 and 7.
2011-01-26 17:23:56 -08:00
John MacFarlane
932fc12840
Updated tests.
2011-01-26 17:23:56 -08:00
John MacFarlane
eb26fa6f54
Distinguish latex & context environments; blank line after in writers.
2011-01-26 17:23:56 -08:00
John MacFarlane
bd43c0f4c9
Bumped version to 1.8; depend on pandoc-types 1.8.
...
The old TeX, HtmlInline and RawHtml elements have been removed
and replaced by generic RawInline and RawBlock elements.
All modules updated to use the new raw elements.
2011-01-26 17:22:53 -08:00
John MacFarlane
5bee388914
Updated textile tests.
2011-01-23 10:18:53 -08:00
John MacFarlane
65a015e74b
Added needed space after .bc and .bq.
...
Otherwise these can trap a </dd>, for example.
Better solution to try next: rewrite using Pretty.
2011-01-23 10:08:11 -08:00
John MacFarlane
16d4366431
Textile writer: Don't escape code in bc. block.
2011-01-23 09:44:28 -08:00
John MacFarlane
38013de857
Textile writer: Don't HTML-escape between @'s.
2011-01-23 09:12:50 -08:00
John MacFarlane
628a1ef815
Textile reader: Fixed bug (swallowed p at beginning of paragraph).
...
The problem was a missing 'try' in the maybeExplicitBlock parser.
Test case, a paragraph beginning with 'p', has been added.
2011-01-23 08:59:35 -08:00
John MacFarlane
7234a79104
Textile writer: Use <pre> instead of bc.. for code with blank lines.
...
This has fewer interaction effects.
2011-01-23 08:49:55 -08:00
John MacFarlane
1d683be414
Textile reader: Support <tt> for inline code.
2011-01-23 00:25:05 -08:00
John MacFarlane
50d08ec2c3
Textile reader: Added code blocks with bc.
2011-01-23 00:05:35 -08:00
John MacFarlane
b9356fcc7e
Removed deliberate error in LaTeX reader tests.
2011-01-22 16:01:14 -08:00
John MacFarlane
2bea4e3729
Reorganized tests.
...
The native writer test needs to run before others that depend on it.
2011-01-22 15:54:24 -08:00
John MacFarlane
87aaa7e719
Use ANSI color to point to diffs in test output.
...
ConTeXt writer bullet list test set to break as an example.
2011-01-22 14:58:32 -08:00
John MacFarlane
91cc03b131
Tests.Helpers: Added file quasiquoter.
...
This allows you to take expected test output from a file.
2011-01-22 13:54:12 -08:00
John MacFarlane
1fd5e3bcff
Tests.Arbitrary: Let strings include any character.
2011-01-22 13:40:29 -08:00
John MacFarlane
5a1abbe7ac
Fixed -Wall error in imports.
2011-01-22 13:40:18 -08:00
John MacFarlane
c801f4f621
Put dashed lines around diff results in Old test.
2011-01-22 13:39:59 -08:00
John MacFarlane
373d05601a
Added native writer tests.
2011-01-22 12:37:19 -08:00
John MacFarlane
209b300d6a
Added 'property' in Tests.Helpers & some quickcheck tests.
2011-01-22 12:18:59 -08:00
John MacFarlane
d86d9260df
Tests.Arbitrary: Added instances for Inlines, Blocks.
2011-01-22 12:18:23 -08:00
John MacFarlane
8dcc67a993
ConTeXt writer: Don't add cr at end of inline footnote.
2011-01-22 12:17:39 -08:00
John MacFarlane
15250859c3
Improved test framework.
...
Now there is a uniform interface for reader and writer tests.
Also added a quasiquoter, for multiline strings.
2011-01-22 10:50:15 -08:00
John MacFarlane
b3c1a89cdf
Merge branch 'master' of github.com:jgm/pandoc
2011-01-21 19:55:24 -08:00
John MacFarlane
654c39a7d2
latex template: move special treatment of \sout.
...
It needs to be inside the if(strikeout) condition, after
the ulem package is imported; otherwise we try to renewcommand{\sout} when
\sout isn't yet defined.
2011-01-21 19:24:00 -08:00
John MacFarlane
d43dbc83f2
More informative output on writer test failure.
2011-01-21 11:02:59 -08:00
John MacFarlane
d0726920db
Added Tests.Writers.ConTeXt and helpers for writer tests.
2011-01-21 10:23:41 -08:00
John MacFarlane
5c35be1362
Make sure native output ends in newline with --standalone.
2011-01-21 09:58:23 -08:00
John MacFarlane
e5e2b0f9ab
Fixed the two test cases that were intentionally set to fail.
2011-01-20 22:38:16 -08:00
John MacFarlane
52b6e38425
Updated tests for new native format.
2011-01-20 22:36:40 -08:00
John MacFarlane
9a739e30bf
Fixed problem with strikout in LaTeX headers with hyperref.
...
Added a command to the latex template to disable \sout inside
pdf strings. Thanks to Joost Kremers for the fix.
2011-01-19 11:43:30 -08:00
John MacFarlane
933cdaf4c8
Show Haskell-readable version of input string in test failure.
2011-01-19 09:44:53 -08:00
John MacFarlane
831889bebc
Unit tests: On failure, print the input string.
2011-01-19 09:38:14 -08:00
John MacFarlane
608d5bc753
Added normalize in latex reader tests.
2011-01-18 23:37:54 -08:00
John MacFarlane
0502c0fd28
Revamped tests with new =: and =?> operators + builder.
...
Left in a couple failing tests for demonstration purposes.
2011-01-18 23:34:34 -08:00
John MacFarlane
0cfafdec64
Replaced --no-citeproc with --natbib in tests.
2011-01-16 11:19:52 -08:00
John MacFarlane
a0e19ba8aa
Merge branch 'tests'
2011-01-15 09:25:01 -08:00
John MacFarlane
18231a8232
Fixed lhs tests for new position of <title> after <meta>s.
2011-01-15 08:22:41 -08:00
John MacFarlane
9305114b9f
LaTeX writer: Escape strings in \href{..}.
...
Previously strings weren't escaped, so %5D would be interpreted
as a LaTeX comment!
2011-01-14 18:59:50 -08:00
John MacFarlane
dc93073804
Minor code cleanup.
2011-01-14 18:09:16 -08:00
John MacFarlane
0222f367b1
Keep Tests.Arbitrary but remove quickcheck tests for now.
...
Remove Tests.Shared.
Remove dependency on QuickCheck.
2011-01-14 18:01:57 -08:00
John MacFarlane
09e9a86db9
Merge branch 'master' of github.com:jgm/pandoc into tests
2011-01-14 14:46:48 -08:00
John MacFarlane
81403b8d80
LateX writer: In nonsimple tables, put cells in \parbox.
...
Otherwise we can get problems with linebreaks, and cell spacing
isn't right.
Thanks to Jef Allbright for pointing out the problem.
2011-01-14 14:45:04 -08:00
John MacFarlane
d41c17a2d5
Added quickcheck tests for normalize in Shared.
2011-01-14 00:30:36 -08:00
John MacFarlane
b3fb541d01
Added Tests/Arbitrary.hs, with Arbitrary instances.
2011-01-13 22:31:04 -08:00