John MacFarlane
e81b87c2dc
Mediawiki reader: Fixed | links inside table cells.
...
Improved attribute parsing.
2013-03-28 11:26:22 -07:00
John MacFarlane
998695001a
Mediawiki reader: Fixed last commit.
2013-03-28 10:51:14 -07:00
John MacFarlane
48b23d491d
MediaWiki reader: Correctly handle indented preformatted text
...
without preceding or following blank line.
2013-03-28 10:48:00 -07:00
John MacFarlane
351b3e09c3
mediawiki reader: allow space before table rows.
2013-03-27 08:45:51 -07:00
John MacFarlane
a63c208d77
OPML reader: Type attributes are not case sensitive.
...
So, `type="link"` or `type="LINK"`.
2013-03-20 09:16:16 -07:00
John MacFarlane
74d53f4347
Added Text.Pandoc.Readers.OPML, exporting readOPML.
...
The _note attribute is supported. This is unofficial, but
used e.g. in OmniOutliner and supported by multimarkdown.
We treat the contents as markdown blocks under a section
header.
Added to documentation and tests.
2013-03-19 20:22:14 -07:00
John MacFarlane
cae52ecc31
Revert "LaTeX reader: citation handling changes."
...
This reverts commit f7229b1473
.
2013-03-17 08:48:29 -07:00
John MacFarlane
db3d4113a2
Markdown reader: don't lose parentheses in URLs.
...
Added tests. This fixes a regression from 1.10.x. Closes #786 .
2013-03-13 19:20:25 -07:00
John MacFarlane
d820eb2c47
Markdown reader: Handle unmatched double quotes in dialogues.
...
They do not generate a Quoted element; instead, the double quote
is just turned into a Str with a curly left quote.
This should satisfy the fiction writers. Closes #99 (again).
2013-03-12 19:18:14 -07:00
John MacFarlane
54782c2af6
Fixed spacing bugs involving code block attributes.
...
Closes #763 .
2013-03-11 20:45:27 -07:00
John MacFarlane
f7229b1473
LaTeX reader: citation handling changes.
...
Previously, a LaTeX citation would always be parsed as a Citation
element, with the raw LaTeX in the [Inline] part.
Now, the LaTeX citation is parsed as a Citation element only if
`--biblio` was specified (i.e. only if there is a nonempty set
of references in readerReferences). Otherwise it is parsed as
raw LaTeX.
This will make it possible to simplify some things in the markdown
writer. It also makes the LaTeX reader behave more like the Markdown
reader.
2013-03-09 10:33:25 -08:00
John MacFarlane
48be39ae2a
Support :number-lines: in RST code output.
2013-03-06 10:13:12 -08:00
John MacFarlane
f7d37c97bb
LaTeX reader: Better support for Verbatim and minted environments.
...
Closes #763 .
2013-03-06 09:58:47 -08:00
John MacFarlane
8b3a81e4dd
LaTeX reader: Handle language attribute for lstlistings.
...
Convert it to a highlighting-kate language name.
2013-03-05 22:43:27 -08:00
John MacFarlane
3692e371a7
LaTeX reader: Read optional attributes in lstlisting environment.
...
We convert these to pandoc standard names, e.g. "numberLines"
for "numbers=left", "startFrom=100" from "firstnumber=100".
Still need to add code to convert the language names.
2013-03-04 09:50:11 -08:00
John MacFarlane
f4629df14a
Markdown reader: attribute parsing improvements.
...
* Cleaned up parsing code.
* '-' in an attribute context = '.unnumbered'. The point of this
is to provide a way to specify unnumbered headers in non-English
documents.
2013-03-02 21:08:33 -08:00
John MacFarlane
3ad68b2522
Check for tables before line blocks.
...
Otherwise some pipe tables get treated as line blocks.
2013-03-02 19:02:50 -08:00
John MacFarlane
1aff783095
Markdown reader: Allow spaces around borders in pipe tables.
...
Closes #772 .
2013-03-02 18:59:50 -08:00
John MacFarlane
f449dfd55d
LaTeX reader: Add "fig:" as title for images with captions.
...
This is needed for them to be rendered as figures.
Closes #766 .
2013-03-01 12:22:01 -08:00
John MacFarlane
649608d324
Markdown: allow ---- in angle-bracket autolinks.
...
The uri parser is designed for bare URIs. In angle-bracket contexts,
we can be sure that we don't have trailing punctuation. So
`<http://openclipart.org/detail/22566/lego-smiley----happy-by-pitr >`
should work now.
Closes #768 .
2013-02-28 22:05:22 -08:00
John MacFarlane
52ee09608a
LaTeX reader: Handle \caption for images in figures.
...
Closes #766 .
2013-02-26 22:16:03 -08:00
John MacFarlane
07e8cedf2b
Make implicit_header_references
work with explicit header ids.
...
(Markdown reader.)
2013-02-21 19:53:35 -08:00
John MacFarlane
7a97369d01
LaTeX reader: Don't emit empty paragraph.
...
See #761 .
2013-02-20 13:01:50 -08:00
John MacFarlane
3f2dd98f45
LaTeX reader: Parse \section*
, etc. as unnumbered sections.
2013-02-20 09:59:31 -08:00
John MacFarlane
5e9145bb62
Textile reader: Handle attributes on headers.
...
Includes `[lang]`, `(class #id)`, `{color:red}` styles.
2013-02-16 18:29:12 -08:00
John MacFarlane
14b64ed46c
HTML reader: Preserve all header attributes.
2013-02-16 17:01:44 -08:00
John MacFarlane
cc410a71b5
Allow &
in emails (for entities).
...
Added tests for entities in titles and links.
Closes #723 .
2013-02-15 23:02:17 -08:00
John MacFarlane
5491adbfdb
Markdown reader: litChar now includes entities.
...
We no longer need to use fromEntities on titles.
2013-02-15 20:27:29 -08:00
John MacFarlane
a49ecc9fe7
Markdown reader: Fix title block parsing.
...
Now if mmd_title_blocks is specified, pandoc will parse a
MMD title block if it sees one, even if pandoc_title_blocks is enabled.
2013-02-12 19:55:37 -08:00
John MacFarlane
35cc1d99ca
Markdown reader: Make backslash escape work in attributes.
2013-02-12 11:27:42 -08:00
John MacFarlane
ea9b7a4a52
Markdown reader: Fixed bug parsing key/value attributes.
...
Parsing failed if you had an unquoted attribute immediately
before the final '}'.
2013-02-12 11:20:36 -08:00
John MacFarlane
0e03962615
LaTeX reader: Parse \hrule
as HorizontalRule.
...
Closes #746 .
2013-02-11 17:39:52 -08:00
John MacFarlane
57e4f5644f
Revert "Citation changes."
...
This reverts commit d46f434d4b
.
2013-02-06 13:14:37 -08:00
John MacFarlane
8dfbe3bbe8
Implement --default-image-extension
for LaTeX reader.
2013-02-06 08:36:29 -08:00
John MacFarlane
1a2eea23a1
Merge branch 'citations'
2013-02-05 22:04:53 -08:00
John MacFarlane
c5f1a8ad2d
Added --default-image-extension
and readerDefaultImageExtension
.
...
Note: Currently this only affects the markdown reader.
2013-02-05 20:08:00 -08:00
John MacFarlane
d46f434d4b
Citation changes.
...
* Citations will work in markdown even if `--biblio` isn't
specified. Note: this may cause unexpected behavior for people
who use strings of the form `@foo` that are not citations!
* If `--biblio` isn't used, the markdown writer will write markdown
citations rather than CSL-rendered citations.
* This means, for example, that you can do `pandoc -f latex -t markdown`
and convert biblatex or natbib citations into pandoc citations.
2013-02-03 10:30:48 -08:00
John MacFarlane
e148fd7547
Removed unneeded blanklines in pipeTable parser.
2013-02-02 19:07:11 -08:00
John MacFarlane
92acb24486
HTML reader: Handle colgroup tag.
2013-01-30 10:05:53 -08:00
John MacFarlane
8c55023d18
Fixed latex macro parsing.
...
Now latex macro definitions are preserved when output is latex,
and applied when it is another format, as originally intended.
Partially addresses #730 .
\providecommand is still not supported. For this we need changes
to texmath.
2013-01-28 10:50:58 -08:00
John MacFarlane
29a17b1767
Merge pull request #733 from jrunningen/master
...
Mediawiki reader: Don't require blanklines after tables.
2013-01-28 09:42:59 -08:00
John MacFarlane
72d11ad20b
Markdown/RST reader: Skip blank lines.
...
This fixes a subtle regression involving grid tables with
empty cells. Closes #732 .
Also added test for grid table with empty cells.
2013-01-27 22:13:05 -08:00
Jeff Runningen
efddb85d46
Mediawiki reader: Don't require blanklines after tables.
2013-01-27 23:15:46 -05:00
John MacFarlane
b6dc21bacf
Markdown reader: Simplified and sped up str parser.
...
We no longer needed the smart quote complexity, because of
improvements to singleQuoteStart and singleQuoteEnd.
And we were able to move the check for intraword underscore
to the emphasis parser.
2013-01-25 23:30:27 -08:00
John MacFarlane
c18fd7e643
RST reader: Allow anonymous form of explicit links.
...
`hello <url>`__
Closes #724 .
2013-01-25 21:10:02 -08:00
John MacFarlane
ce4b7fc416
Changed copyright date range on Markdown reader.
2013-01-25 19:53:18 -08:00
John MacFarlane
52a6ec7297
Minor code cleanup.
2013-01-25 19:50:34 -08:00
John MacFarlane
ae74558114
Markdown reader: Moved guardEnabled to definitionList.
...
From definitionListItem.
Slight performance improvement.
2013-01-25 19:43:30 -08:00
John MacFarlane
846be80c26
Markdown reader: Performance improvement in str parser.
...
Moved a guardEnabled out of an inner loop.
2013-01-25 18:42:40 -08:00
John MacFarlane
71c5ebe682
Use anyLine everywhere instead of 'manyTill anyChar newline'.
2013-01-25 18:32:15 -08:00