John MacFarlane
daeb52d4e0
Eliminated use of TH in test suite.
2013-01-23 19:26:39 -08:00
John MacFarlane
f468db9277
LaTeX template: Use \urlstyle{same}
to avoid monospace URLs.
2013-01-21 11:52:00 -08:00
John MacFarlane
26d30d6d38
Use proportional font for email autolinks with obfuscation.
...
Closes #714 .
2013-01-21 11:28:35 -08:00
John MacFarlane
af84953781
Markdown reader: Fixed bug with headerless grid tables.
...
The 1.10 code assumed that each table header cell contains
exactly one block. That failed for headerless tables (0) and also
for tables with multiple blocks in a header cell.
The code is fixed and tests provided. Thanks to Andrew Lee for
pointing out the bug.
2013-01-21 09:52:24 -08:00
John MacFarlane
9cc1cf1f40
Fixed bug with escaped % in LaTeX reader.
...
Also added tests. Closes #710 .
2013-01-20 19:21:13 -08:00
John MacFarlane
27e7c57721
LaTeX test updates for latest changes to template & h-k.
2013-01-19 10:41:42 -08:00
John MacFarlane
2fbe611a96
Get rid of compiler warnings in Tests.Helpers.
2013-01-19 10:41:12 -08:00
John MacFarlane
809d74b86d
Set locale encoding in test suite.
...
This prevents a "commit buffer (invalid argument)" error on
Windows.
2013-01-18 11:23:09 -08:00
John MacFarlane
8eab759a9c
RTF writer: Added writeRTFWithEmbeddedImages.
...
* RTF writer: Export writeRTFWithEmbeddedImages instead of
rtfEmbedImage.
* Text.Pandoc: Use writeRTFWithEmbeddedImages for RTF.
* Moved code for embedding images in RTF out of pandoc.hs.
2013-01-18 10:33:37 -08:00
John MacFarlane
bf3a911a1c
Changed Ext_autolink_urls -> Ext_autolink_bare_uris.
...
Added tests.
2013-01-15 12:44:50 -08:00
John MacFarlane
e9b3d5aa7a
Added lots of tests for bare URIs.
2013-01-15 12:28:31 -08:00
John MacFarlane
e0e36ce543
Revised URI parser.
...
* It no longer uses Network.URIs URI parser, which is too restrictive
(not allowing unicode URIs unless encoded).
* It allows many more schemes.
* It better handles punctuation so as to avoid capturing trailing
punctuation in bare URLs.
2013-01-15 10:52:02 -08:00
John MacFarlane
7bc37e4414
Use 'fig:' instead of '\SOH' in title to indicate figure.
...
Revises 1a4b47e933
2013-01-15 08:46:09 -08:00
John MacFarlane
1a4b47e933
Implemented Ext_implicit_figures.
...
* In markdown reader, add a '\1' character to the beginning
of the title of an image that is alone in its paragraph,
if implicit_figures extension is selected.
* In writers, check for Para [Image alt (src,'\1':tit)] and treat
it as a figure if possible.
* Updated tests.
This is a bit of a hack, but it allows us to make implicit_figures
an extension of the markdown reader, rather than the writers.
2013-01-14 20:53:08 -08:00
John MacFarlane
51e0bd277a
Parsing: Fixed uri -- escape unicode URLs.
...
Otherwise Network.URI.parseURI fails on e.g. Chinese
URLs. Changed an incorrect test in markdown-reader-more.
2013-01-14 17:38:34 -08:00
John MacFarlane
45895b561f
RST writer: Fixes bug with links with duplicate text.
...
We now (a) use anonymous links for links with inline URLs, and
(b) use an inline link instead of a reference link if the
reference link would require a label that has already been
used for a different link.
Closes #511 .
2013-01-13 23:00:05 -08:00
John MacFarlane
9ee9096d07
Added tests for markdown line blocks and explicit header attributes.
2013-01-13 18:03:15 -08:00
John MacFarlane
5c067bb457
RST reader: Line block improvements.
...
* Use nonbreaking spaces for initial indent (otherwise lost in HTML and
LaTeX).
* Allow multiple paragraphs in a single line block.
2013-01-13 11:15:31 -08:00
John MacFarlane
5ecadd7bfa
Use line block in RST writer when a paragraph contains linebreaks.
...
Previously linebreaks weren't supported in RST, since RST
has no native linebreak construct.
2013-01-13 09:25:56 -08:00
John MacFarlane
70e308f2f9
Escape |
as \vert
in LaTeX math.
...
This avoids a clash with highlighting-kate's macros, which
redefine | as a short verbatim delimiter. Thanks to
Björn Peemöller for raising this issue.
2013-01-12 10:21:19 -08:00
John MacFarlane
f2aa5fd661
Fixed/simplified diff output for tests.
2013-01-12 10:21:07 -08:00
John MacFarlane
d599c4cdab
Added Attr field to Header.
...
Previously header ids were autogenerated by the writers.
Now they are generated (unless supplied explicitly) in the
markdown parser, if the `header_identifiers` extension is
selected.
In addition, the textile reader now supports id attributes on
headers.
2013-01-09 09:30:05 -08:00
John MacFarlane
8ff81dc9ca
Updated tests for tight/loose lists.
...
Taking into account new context/latex output, and fixing
some bugs in the test suite Tests.Helpers and Tests.Writers.ConTeXt.
(We had the wrong order of expected/actual in the diff output.)
2013-01-07 20:58:49 -08:00
John MacFarlane
8c48bd8feb
Don't put the text of an autolink in Code font.
2013-01-06 20:51:51 -08:00
John MacFarlane
300f8528da
Mediawiki reader: interpret HTML in verbatim contexts as text.
...
Thanks to Jeff Runningen for reporting that mediawiki works
this way.
2013-01-06 19:35:40 -08:00
John MacFarlane
7d74a916ff
Updated table tests for latex writer changes.
2013-01-05 20:03:50 -08:00
John MacFarlane
91e8d80eee
MediaWiki writer: use <code>
not <tt>
for Code.
2013-01-04 23:16:49 -08:00
John MacFarlane
0f9e2c2320
Added css to preserve spaces in <code> tags.
...
Thanks to Dirk Laurie.
2013-01-04 23:02:22 -08:00
John MacFarlane
3d7608d855
Updated tests for latest highlighting-kate version.
2013-01-04 19:48:02 -08:00
John MacFarlane
5a4f7ec595
Added tests for implicit header references.
2013-01-03 20:43:44 -08:00
John MacFarlane
56ff5e1845
Updated test runner for changes in pandoc.
2013-01-03 11:20:10 -08:00
John MacFarlane
0675346e76
Fixed test suite to use Diff 0.2 API.
2013-01-02 11:41:22 -08:00
John MacFarlane
4cd573c61f
Textile reader/writer: Fixed autolinks.
...
Previously the textile reader and writer incorrectly implented
RST-style autolinks for URLs and email addresses.
This has been fixed. Now an autolink is done this way:
"$":http://myurl.com
2012-11-06 16:05:17 -08:00
John MacFarlane
9d0b011869
RST writer: Don't add ":align: center" to figures.
2012-11-04 18:33:35 -08:00
John MacFarlane
06300e59d5
Removed citationSuppressParens.
...
Makefile: Use citeproc-0.3.6 release.
2012-10-28 09:36:15 -07:00
John MacFarlane
6f2347635c
LaTeX reader: Initialize citationSuppressParens field.
2012-10-22 19:17:00 -07:00
John MacFarlane
cfab8eaecb
Revert "LaTeX reader: Use new suppressParens option for footnote citations."
...
This reverts commit 7499499b68
.
Conflicts:
src/Text/Pandoc/Readers/LaTeX.hs
2012-10-21 23:16:23 -07:00
John MacFarlane
bfddcb46dc
Revert "Adjust LaTeX reader test for last change."
...
This reverts commit ea34087cde
.
2012-10-21 23:14:42 -07:00
John MacFarlane
ca583a340f
Updated lhs-test.latex for new highlighting-kate treatment of `.
2012-10-20 23:54:05 -07:00
John MacFarlane
ea34087cde
Adjust LaTeX reader test for last change.
2012-10-15 20:01:07 -07:00
John MacFarlane
7499499b68
LaTeX reader: Use new suppressParens option for footnote citations.
...
Also changed Biblio, Markdown reader, and LaTeX reader tests because
of new citationSuppressParens field in Citation.
2012-10-15 19:53:57 -07:00
John MacFarlane
ea8b8114e1
Textile reader: Fixed bug with list items containing line breaks.
...
Now pandoc correctly handles hard line breaks inside list items.
Previously they broke list parsing. Thanks to Pablo
Rodríguez for pointing out the problem.
2012-10-13 10:44:38 -07:00
John MacFarlane
4349097990
LaTeX reader: Better support for citation commands.
...
* Make `\cite` etc. an AuthorInText.
* Make `\footcite` etc. into citations in notes.
2012-10-10 19:41:39 -07:00
John MacFarlane
f232034ab0
Textile reader: Implemented comment blocks.
2012-10-05 10:23:15 -07:00
John MacFarlane
eea4c9e4d3
Updated mediawiki writer test for <br />
change.
2012-10-04 08:36:00 -07:00
John MacFarlane
e8260c27e1
RST reader: Consolidate super/subscript, math into interpretedRole.
2012-09-30 20:28:50 -07:00
John MacFarlane
b07ea7a02d
RST reader: Consolidated rawBlock into directive.
2012-09-30 09:59:22 -07:00
John MacFarlane
93e92a4716
Renamed removedLeadingTrailingSpace to trim.
...
Also removeLeadingSpace to triml,
removeTrailingSpace to trimr.
2012-09-29 17:09:34 -04:00
John MacFarlane
487d01118f
RST reader: Consolidated math block parsers into directive.
2012-09-29 16:59:41 -04:00
John MacFarlane
ab17faf497
RST reader: Use Text.Pandoc.Builder.
...
This will give us more flexibility in the future.
It also gives built-in normalization. Performance slightly
better.
2012-09-27 17:52:48 -07:00