Albert Krewinkel
030020236c
Org reader: Precise rules for the recognition of markup
...
The inline parsers have been rewritten using the org source code as a
reference. This fixes a couple of bugs related to erroneous markup
recognition.
2014-04-09 15:26:06 +02:00
Albert Krewinkel
c47bd8404f
Org reader: Support inline math (like $E=mc^2$)
...
Closes #1223 .
2014-04-07 11:47:36 +02:00
Albert Krewinkel
480b33b710
Org reader: Add support for definition lists
2014-04-06 20:39:10 +02:00
John MacFarlane
24f438aa5f
Textile reader: Better support for attributes.
...
Instead of being ignored, attributes are now parsed and
included in Span inlines.
The output will be a bit different from stock textile:
e.g. for `*(foo)hi*`, we'll get `<em><span class="foo">hi</span></em>`
instead of `<em class="foo">hi</em>`. But at least the data is
not lost.
2014-04-05 21:02:12 -07:00
John MacFarlane
060a76a38e
Textile reader: Improved treatment of HTML spans (%).
...
Closes #1115 .
2014-04-05 20:41:38 -07:00
John MacFarlane
971dca588e
Merge pull request #1219 from tarleb/org-images
...
Org-reader: support inline images, clean-up code, fix bugs
2014-04-05 15:12:40 -07:00
Albert Krewinkel
652c781e37
Org reader: Support inline images
2014-04-05 16:15:53 +02:00
Albert Krewinkel
fd98532784
Org reader: Fix parsing of nested inlines
...
Text such as /*this*/ was not correctly parsed as a strong, emphasised
word. This was due to the end-of-word recognition being to strict as it
did not accept markup chars as part of a word. The fix involves an
additional parser state field, listing the markup chars which might be
parsed as part of a word.
2014-04-05 16:14:40 +02:00
John MacFarlane
25763a8a35
DocBook reader/writer tests: use "authorgroup".
2014-04-04 21:41:44 -07:00
John MacFarlane
4ee92dce0c
MediaWiki reader: Fixed bug in certain nested lists.
...
The bug: If a level 2 list was followed by a level 1 list, the first
item of the level 1 list would be lost.
Closes #1213 .
2014-04-01 10:36:23 -07:00
John MacFarlane
976f4f2d8f
Added HTML reader tests for empty strong, emph.
2014-04-01 10:15:21 -07:00
Matthew Pickering
90269cb213
Tests updated to reflect changes to readers.
...
Previously normalisation was handled by the `normalizeSpaces` function. The behavoir of the builder monoid is slightly different and melds together more items such as consecutive strings and spaces adjacent to line breaks. The tests have been changed to reflect this.
All relevant tests passed when the string melding line of the builder monoid was commented out.
2014-04-01 13:53:34 +01:00
John MacFarlane
d7fbc40dff
RTF writer: Fixed tables cells containing paragraphs.
...
This moves \intbl after \pard.
2014-03-24 15:12:32 -07:00
John MacFarlane
b9cc29e15a
Merge pull request #1068 from jaimeMF/mw-images-langs
...
MediaWiki reader: Accept image links in more languages
2014-03-24 10:39:49 -07:00
John MacFarlane
f3c9d37885
HTML writer: Add colgroup around col tags.
...
Also affects EPUB writer.
Closes #877 .
2014-03-05 13:01:23 -08:00
John MacFarlane
ae86e24ff6
Merge branch 'master' of https://github.com/mb21/pandoc into mb21-master
2014-03-04 10:15:43 -08:00
Albert Krewinkel
24b2ac43b0
Add a simple Emacs Org-mode reader
...
The basic structure of org-mode documents is recognized; however,
org-mode features like todo markers, tags etc. are not supported yet.
2014-03-04 10:40:40 +01:00
mb21
80511f1b34
InDesign ICML Writer
2014-02-28 13:35:35 +01:00
John MacFarlane
b677ce0663
Revised tests for new latex template.
2014-02-20 09:43:02 -08:00
Merijn Verstraaten
fe246ce01c
Enhanced Pandoc's support for rST roles.
...
rST parser now supports:
- All built-in rST roles
- New role definition
- Role inheritance
Issues/TODO:
- Silently ignores illegal fields on roles
- Silently drops class annotations for roles
- Only supports :format: fields with a single format for :raw: roles,
requires a change to Text.Pandoc.Definition.Format to support multiple
formats.
- Allows direct use of :raw: role, rST only allows indirect (i.e.,
inherited use of :raw:).
2014-02-15 17:51:33 +01:00
John MacFarlane
9f3b2f6f5d
Fixed mediawiki ordered list parsing.
...
Closes #1122 .
2014-01-22 22:07:13 -08:00
John MacFarlane
3cad665afb
Updated tests for latest texmath.
2014-01-07 23:35:30 -08:00
John MacFarlane
f3ee82373b
HTML reader: Parse name/content pairs from meta tags as metadata.
...
Closes #1106 .
2014-01-01 09:22:37 -08:00
John MacFarlane
8e79bbde1e
Removed old MarkdownTest_1.0.3 directory (not currently used).
...
Closes #1104 .
2013-12-27 13:36:28 -08:00
Henry de Valence
f6d151889c
HLint: redundant parens
...
Remove parens enclosing a single element.
2013-12-19 20:43:25 -05:00
Henry de Valence
c35f5ba42d
HLint: Remove lambdas.
2013-12-19 20:28:53 -05:00
John MacFarlane
f966295770
Don't use tilde code blocks with braced attributes in gfm output.
...
A consequence of this change is that the backtick form will be
preferred in general if both are enabled. I think that is good,
as it is much more widespread than the tilde form.
Closes #1084 .
2013-12-09 20:31:47 -08:00
John MacFarlane
bc2c0fd443
Small change to HTML reader tests.
...
"$" is now a special character.
2013-12-06 17:33:29 -08:00
Jose Luis Duran
fdaeec0c48
Add booktabs package for LaTeX tables
...
[ci skip]
2013-12-04 04:26:22 +00:00
John MacFarlane
7f09c1834d
Markdown writer: Fix rendering of tight sublists.
...
E.g.
- foo
- bar
- baz
Previously a spurious blank line was included before the last item.
Closes #1050 .
2013-11-30 17:59:28 -08:00
John MacFarlane
7aa4d51968
ODT writer: Add draw:name
attribute to draw:frame
elements.
...
This is reported to be necessary to avoid an error from recent
versions of Libre Office when files contain more than one image.
Closes #1069 .
Thanks to wmanley for reporting and diagnosing the problem.
2013-11-30 17:00:58 -08:00
John MacFarlane
dde484f809
Fixed tests for new ConTeXt writer behavior.
2013-11-30 16:34:32 -08:00
Jaime Marquínez Ferrándiz
303e42a94f
MediaWiki reader: Accept image links in more languages
...
In some of the Wikipedia versions the local version of 'File' is used (for example 'Archivo' in Spanish)
2013-11-24 15:28:57 +01:00
John MacFarlane
526762bf22
ConTeXt writer: Use setupcaption to separate style from content.
...
Instead of adding 'nunumber' every time we place a figure...
Closes #1067 .
2013-11-22 19:51:07 -08:00
John MacFarlane
cf149fcf38
Fixed bug with intraword emphasis.
...
Closes #1066 .
2013-11-22 19:41:08 -08:00
John MacFarlane
a3eba6ee84
LaTeX reader: Parse contents of curly quotes or matched "
as quotes.
2013-11-18 20:28:27 -08:00
John MacFarlane
0fd2176e29
MediaWiki reader: Add automatic header identifiers.
2013-11-17 08:47:14 -08:00
John MacFarlane
b4441c940d
HTML/EPUB footnotes: Put <sup>
tag inside <a>
tags.
...
This allows better control of formatting, since the `<a>`
tags have a distinguishing class.
Closes #1049 .
2013-11-12 18:48:06 -08:00
John MacFarlane
0d95c15e83
TexMath: Export readTeXMath', which attends to display/inline.
...
Deprecate readTeXMath, and use readTeXMath' in all the writers.
Require texmath >= 0.6.5.
2013-11-01 14:28:24 -07:00
John MacFarlane
e63aafd620
Fix definition lists with internal links in terms ( closes #1032 ).
...
This fix puts braces around a term that contains an internal
link, to avoid problems with square brackets.
2013-10-21 17:33:42 -07:00
John MacFarlane
9d6bca06ee
Pass the buildDir as first argument to test suite.
...
Allows test suite to work with cabal sandboxes.
Previously we hard-coded the build directory.
2013-10-20 12:36:26 -07:00
John MacFarlane
e5feed00f7
MediaWiki reader: Trim contents of <math>
tags.
...
Otherwise we get problems when converting to markdown.
Closes #1027 .
2013-10-18 17:50:43 -07:00
John MacFarlane
a117a88137
Updated opendocument tests.
2013-09-24 18:41:46 -07:00
John MacFarlane
21f1bcb280
Markdown reader: unresolved citations fall back to original text.
...
Not ???.
Reason: Less surprising, especially for people using @ as
in twitter.
2013-09-14 22:28:37 -07:00
John MacFarlane
71841de0f3
Mediawiki: Parse an image + caption in a para by itself as a figure.
2013-09-11 09:31:41 -07:00
John MacFarlane
8d43e08ce7
Markdown writer: Fixed bugs in YAML header output.
2013-09-06 22:26:38 -07:00
John MacFarlane
9b0b9b6e03
Markdown reader: Don't autolink a bare URI that is followed by </a>
.
...
Closes #937 .
2013-09-01 15:18:56 -07:00
John MacFarlane
90c49b0aae
Use registerHeader in Textile reader.
...
This produces automatic header identifiers, unless `auto_identifiers`
extension is disabled.
Closes #967 .
2013-09-01 09:22:55 -07:00
John MacFarlane
9282f63278
Use registerHeader in RST and LaTeX readers.
...
This will give automatic unique identifiers, unless
`-auto_identifiers` is specified.
2013-09-01 09:13:31 -07:00
John MacFarlane
4e4c948b41
Added markdown citation parsing test.
2013-08-26 22:30:27 -07:00