allow (and discard) optional argument for \caption
Merge pull request #1336 from aspnes/master

allow (and discard) optional argument for \caption
input fmt is org-citations its plural not singular
Add DocX files to tree.

This introduces Text.Pandoc.DocX, and its exported `readDocX` function.
Add files to cabal.

Note there is a build warning for unused `makeImagesSelfContained`
function, since there isn't yet a command-line-option to make use of it.
Integrated the docx reader into the main pandoc program.

Changes also include generalising the types of reader allowed. The
mechanism now mimics the more general output mechanism.
Add DocX automated tests.

Note this makes use of input and output files in the tests/ dir.
Reference new DocX tests in cabal file.
Add DocX tests to test-pandoc.hs
Updated README to reflect docx reader.
Moved extractSpaces to Shared.hs

Generalised and move the extractSpaces function from `HTML.hs` to
`Shared.hs` so that the docx reader can also use it.
Org reader:  fixed #1342.

This change rewrites `inlineLaTeXCommand` so that parsec will
know when input is being consumed.  Previously a run-time
error would be produced with some input involving raw latex.
(I believe this does not affect the last release, as the inline
latex reading was added recently.)
Merge pull request #1339 from dfc/patch-1

input fmt is org-citations its plural not singular
Merge pull request #1344 from mpickering/master

Moved extractSpaces to Shared.hs
Added failing HTML reader test for table.

See #1341.
Updated HTML reader table test - should be simple table.
HTML reader: Fixed major parsing problem with HTML tables.

Table cells were being combined into one cell.  Closes #1341.
LaTeX reader:  don't assume preamble doesn't contain environments.

Closes #1338.
LaTeX reader:  handle leading/trailing spaces in emph better.

`\emph{ hi }` gets parsed as `[Space, Emph [Str "hi"], Space]`
so that we don't get things like `* hi *` in markdown output.

Also applies to textbf and some other constructions.

Closes #1146.  (`--normalize` isn't touched by this, but
normalization should not generally be necessary with the
changes to the readers.)
Markdown reader: fixed #1333 (table parsing bug).