Commit graph

3114 commits

Author SHA1 Message Date
John MacFarlane
a4388279de LaTeX reader: Parse 'dimension' arguments to unknown commands.
e.g. `\parindent0pt`
2012-04-10 18:56:08 -07:00
John MacFarlane
54c9d4348a LaTeX reader: Control sequences can't be followed by a letter.
This fixes a bug where `\begingroup` was parsed as `\begin`
followed by `group`.
2012-04-10 18:25:18 -07:00
John MacFarlane
66f8dc14b7 Docx writer: Fixed multi-paragraph list items.
Previously they each got a list marker.
Closes #457.
2012-04-07 17:08:52 -07:00
John MacFarlane
4fce1a63b1 LaTeX reader: Handle \bgroup, \egroup, \begingroup, \endgroup. 2012-04-07 16:16:43 -07:00
John MacFarlane
998c0c6ad0 Updated texinfo test to reflect template change. 2012-04-06 16:54:39 -07:00
John MacFarlane
f3fc190403 Fixed document encoding in texinfo template.
Resolves Debian Bug #667816.
2012-04-06 12:54:44 -07:00
John MacFarlane
ecbe9f763c Textile reader: Implemented literal escapes with == and <notextile>.
Closes #473.
2012-04-05 13:52:12 -07:00
John MacFarlane
55833fd4a7 Updated changelog. 2012-04-03 19:31:11 -07:00
John MacFarlane
f25dcacedf LaTeX writer: don't use eurosym package unless document has a €. 2012-04-03 18:49:05 -07:00
John MacFarlane
0afd33e4c5 Markdown writer: don't replace empty alt in image with "image".
Previously `<img src="empty.png" alt=""/>` would be translated as
`![image](empty.png)`; now it becomes `![](empty.png)` as one might
naturally expect.
2012-04-03 18:28:08 -07:00
John MacFarlane
30a99ecb7c Updated changelog. 2012-04-01 21:51:14 -07:00
John MacFarlane
f22a2d72e5 Bumped version in windows installer. 2012-04-01 21:17:45 -07:00
John MacFarlane
c05a390c67 Version bump to 1.9.2. 2012-04-01 21:14:25 -07:00
John MacFarlane
6882346ce2 Fixed comment on MakeManPage. 2012-04-01 21:09:10 -07:00
John MacFarlane
2f535ceda3 Avoid repeated id in section and header in HTML slides.
Previously pandoc would use the same id attribute for the
div or section and the header inside it; now the id is omitted
from the header if the div or section has it.
2012-03-29 11:10:10 -04:00
John MacFarlane
b50d01aa32 Fixed issue with q in dzslides template. 2012-03-28 13:35:25 -04:00
John MacFarlane
6b46c2dfd1 Properly handle citations nested in other inline elements.
Closes #460.

Note:  processBiblio is a mess.  It should be rewritten for
clarity and efficiency.
2012-03-27 12:16:02 -04:00
John MacFarlane
7bc4dc37b2 Added PDF metadata (title,author) in LaTeX standalone + PDF output.
Closes #459.
2012-03-25 12:10:43 -07:00
John MacFarlane
a2e5de1d11 Merge pull request #456 from gmaslov/master
Implement the RST default-role directive
2012-03-25 11:19:57 -07:00
Greg Maslov
4a1ba8ce49 Oops! Forgot to munch whitespace / ignore body after directive. 2012-03-25 05:03:35 -04:00
Greg Maslov
618dc294f9 Add parsing support for the rST default-role directive. 2012-03-24 21:48:54 -04:00
John MacFarlane
3c4e1ff063 RST reader: allow :math:... even when not followed by blank or \.
This does not implement the complex rule described at
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup-recognition-rules,
but it should be good enough for most purposes.

Closes #453.
2012-03-24 16:11:56 -07:00
John MacFarlane
d7f2b5d0f5 RST reader: '\ ' is null, not escaped space. 2012-03-24 16:03:46 -07:00
John MacFarlane
9352750cb2 RST writer: Better handling of inline formatting.
* `hi*there*hi` now gets rendered properly as `hi\ *there*\ hi`
* Unnecessary '\ ' are avoided around :math:, :sub:, :sup:
* Implemented most of the rules in
  http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#inline-markup-recognition-rules,
  though some unnecessary '\ ' may be inserted when unicode quotes
  are used.
2012-03-24 15:53:57 -07:00
John MacFarlane
4c2249ea89 dzslides: Updated template.html and styles in default template.
Closes #454.
2012-03-23 11:37:09 -07:00
John MacFarlane
b1bf8babae Merge pull request #452 from wangp/master
Texinfo writer: retain directories in image paths.
2012-03-20 15:54:01 -07:00
Peter Wang
d74f3e1f28 Texinfo writer: retain directories in image paths. 2012-03-21 09:20:30 +11:00
John MacFarlane
29c8f1554b PDF: Run latex at least two times.
This ensures that the PDFs will have hyperlinked bookmarks
(PDF table of contents that can be displayed in the sidebar).
2012-03-19 09:25:33 -07:00
John MacFarlane
2894df7b76 Added test for one column table in LaTeX. 2012-03-19 08:29:19 -07:00
John MacFarlane
1db909e49b Fixed bug parsing LaTeX tables with one column.
Thanks to Steven Solie for finding the bug.
2012-03-19 08:18:32 -07:00
John MacFarlane
13eebc6cfb Added mathfont variable to latex template. 2012-03-15 14:39:03 -07:00
John MacFarlane
68503311cc Bumped version bound for test-framework. 2012-03-15 11:18:41 -07:00
John MacFarlane
f29e67e161 LaTeX template tweaks:
- allow geometry variable to be repeated for multiple options
- use mainfont instead of romanfont
2012-03-15 10:49:36 -07:00
John MacFarlane
783cfdc0eb Updated latex template. 2012-03-14 19:06:33 -07:00
John MacFarlane
43b7dc0fdf Updated latex template. 2012-03-14 18:50:20 -07:00
John MacFarlane
8538b6764d Fixed travis-CI script to build tests. 2012-03-14 18:34:33 -07:00
John MacFarlane
9a664d7519 Added romanfont, sansfont, monofont variables to latex template. 2012-03-14 14:41:34 -07:00
John MacFarlane
772c0757c1 Added geometry variable to default LaTeX template. 2012-03-14 14:17:22 -07:00
John MacFarlane
965dcd3a00 Removed stripansi.sh. 2012-03-13 08:40:42 -07:00
John MacFarlane
4c0b6ad48e Added .travis.yml. 2012-03-13 08:39:26 -07:00
John MacFarlane
4ebfc8ae2e Removed stripansi.sh. 2012-03-13 08:39:14 -07:00
John MacFarlane
acb267ef33 Windows installer: fix dzslides directory. Closes #446. 2012-03-12 22:14:26 -07:00
John MacFarlane
14050e77a3 README: Removed misleading note on reST math. 2012-03-12 12:47:25 -07:00
John MacFarlane
60fb915351 Use {} around ctable caption. Closes #445. 2012-03-12 11:06:49 -07:00
John MacFarlane
1202f016bb Added section on Internal links. 2012-03-12 10:19:41 -07:00
John MacFarlane
1b1d7d570a Merge pull request #444 from trofi/master
fix doc generation failure against haddock-2.10.0
2012-03-12 08:36:40 -07:00
Sergei Trofimovich
e838cca4e6 fix doc generation failure against haddock-2.10.0
$ cabal configure --haddock-option=-v3
$ cabal haddock -v3
    Creating interface...
     100% (  2 /  2) in 'Text.Pandoc.Readers.Native'
    Checking module Text.Pandoc.Readers.HTML...
    Creating interface...
      50% (  4 /  8) in 'Text.Pandoc.Readers.HTML'
    Checking module Text.Pandoc.Readers.Textile...
    Creating interface...
    haddock: internal error: lexical error
    /usr/bin/haddock returned ExitFailure 1

Patch changes UTF-8 spaces to ASCII spaces.

It's a known haddock issue:
    http://www.haskell.org/pipermail/haskell-cafe/2012-March/099870.html

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
2012-03-12 10:40:08 +03:00
John MacFarlane
a768844751 Fixed lstlisting environment in LaTeX reader.
Closes #443.
2012-03-10 12:33:55 -08:00
John MacFarlane
7253946318 Fixed typo in README 2012-03-10 07:47:59 -08:00
John MacFarlane
b4314620bc Merge pull request #442 from trofi/master
pandoc.cabal: fix typo in zlib's upper bound '<= 0.6' should be '< 0.6'
2012-03-10 07:06:45 -08:00