Commit graph

574 commits

Author SHA1 Message Date
John MacFarlane
5085962c28 Text.Pandoc.Parsing: Export all Parsec functions used in pandoc code.
No other module directly imports Parsec.  This will make it easier
to change the parsing backend in the future, if we want to.
2012-07-20 14:41:44 -07:00
John MacFarlane
a4c28ead79 Use Text.Parsec instead of Text.ParserCombinators.Parsec. 2012-07-20 14:19:06 -07:00
John MacFarlane
6442e185b3 HTML writer: Put mathjax in span with class "math".
Closes #562.
2012-07-11 16:54:13 -07:00
John MacFarlane
7da913dbd7 ConTeXt writer: don't escape &,^,<,>.
Simplified escapes for `}` and `{` to `\{` and `\}`.

Thanks to Aditya Mahajan.
2012-06-27 15:05:13 -07:00
John MacFarlane
d320c2eac5 MediaWiki writer: Avoid extra blank lines after sublists.
Thanks to Gavin Beatty.
2012-06-27 14:46:46 -07:00
John MacFarlane
e9f6366af7 Don't escape _ as \letterunderscore{} in ConTeXt. 2012-06-26 19:50:52 -07:00
John MacFarlane
527be1ddf2 Don't generate empty H1 after hrule slide breaks.
We now use a slide-level header with contents [Str "\0"] to mark
an hrule break.  This avoids creation of an empty H1 in these
contexts.

Closes #484.
2012-06-25 14:52:09 -07:00
John MacFarlane
34fac208d2 Fixed --incremental behavior for Beamer.
When `--incremental` is used, lists inside block quotes should
appear all at once (as in HTML).
2012-06-03 09:14:09 -07:00
John MacFarlane
5669dc2a47 Simplified bullet characters so they work with Word 2007.
Closes #520.
2012-06-01 18:44:00 -07:00
John MacFarlane
e14712dabd LaTeX writer: Ensure newline after Verbatim at end of footnote.
This fixes a regression. Also added a test for this.
2012-06-01 10:50:22 -07:00
John MacFarlane
4834865653 Escape % as \letterpercent{} not \letterpercent in ConTeXt. 2012-05-31 19:15:42 -07:00
John MacFarlane
81be8fbf77 Merge pull request #521 from jonassmedegaard/master
Slidy lang support, and new Slideous writer
2012-05-30 18:21:26 -07:00
John MacFarlane
91e9d904b5 Org writer: Add space before language name.
Closes #523.
2012-05-29 16:27:19 -07:00
John MacFarlane
3b4e4de52b ConTeXt writer: ensure space after \stopformula. 2012-05-29 12:43:11 -07:00
Jonas Smedegaard
61f8dd4da8 Add support for Slideous output. 2012-05-24 10:31:18 +02:00
John MacFarlane
79a17ef9b9 Markdown Use a nonzero space to prevent false recognition of list marker.
This addresses #516, but in a rather hackish way.  There ought to
be a better solution.
2012-05-19 17:44:15 -07:00
John MacFarlane
4991852edb Markdown writer: Improved definition lists.
* Use `:` form instead of `~`, for better compatibility with other
  markdown implementations.

* Don't wrap the term, because it breaks definition lists.
2012-05-16 13:07:58 -07:00
John MacFarlane
4e35c67c23 LaTeX writer: More consistent interblock spacing. 2012-05-14 07:04:47 -07:00
John MacFarlane
428595469e LaTeX reader: ensure we don't have extra blank lines at ends of cells.
This can cause LaTeX errors, as they are interpreted as new paragraphs.
2012-05-13 14:59:02 -07:00
John MacFarlane
5f889b9396 Added writerTeXLigatures to WriterOptions, --no-tex-ligatures option.
This is useful for those who want to use advanced OpenType features
with xelatex/lualatex.
2012-05-11 23:00:46 -07:00
John MacFarlane
858bf197fe Revert "Removed blaze_html_05 flag -- require blaze >= 0.5 by default."
This reverts commit f67a80cea2.
2012-05-10 09:13:14 -07:00
John MacFarlane
9961dc274a Improved spacing around LaTeX block environments.
verbatim, itemize, description, enumerate.
2012-04-30 09:26:15 -07:00
John MacFarlane
8201257b5c LaTeX writer: Fixed spacing in quote environments.
Closes #502.  Previously you'd get:

~~~
hi

\begin{quote}
hi

\end{quote}
hi
~~~

Now we get:

~~~
hi

\begin{quote}
hi
\end{quote}

hi
~~~
2012-04-30 07:46:38 -07:00
John MacFarlane
deb72b5f43 ConTeXt writer: Fixed escaping of %.
* In text, `%` needs to be escaped as `\letterpercent`, not `\%`
* Inside URLs, `%` needs to be escaped as `\%`

Thanks to jmarca and adityam for the fix.  Closes #492.
2012-04-29 14:21:56 -07:00
John MacFarlane
77125ea68c Texinfo writer: Escape special characters in node titles.
This fixes a problem pointed out by Joost Kremers.  Pandoc used
to escape an '@' in a chapter title, but not in the corresponding
node title, leading to invalid texinfo.
2012-04-25 19:23:01 -07:00
John MacFarlane
f67a80cea2 Removed blaze_html_05 flag -- require blaze >= 0.5 by default. 2012-04-24 19:34:53 -04:00
Mark Wright
471d4dc502 changes for blaze-html 0.5 2012-04-23 19:53:04 +10:00
John MacFarlane
869ff43442 LaTeX writer: Use fixltx2e package to provide '\textsubscript'. 2012-04-21 09:59:36 -07:00
John MacFarlane
9a347c37ad RST writer: Don't wrap link references.
Closes #487.
2012-04-21 09:46:05 -07:00
John MacFarlane
9989170df2 LaTeX writer: Use \hyperref[ident]{text} for internal links.
Previously we used `\href{\#ident}{text}`, which didn't work on
all systems. Thanks to Dirk Laurie.
2012-04-21 09:41:05 -07:00
John MacFarlane
e6e63d1699 Docx writer: Fixed error message when style file can't be parsed. 2012-04-21 09:27:53 -07:00
John MacFarlane
7495d970b7 Mardkown writer: escape < and $. 2012-04-15 11:03:52 -07:00
John MacFarlane
dbbc932f24 Markdown writer: don't force delimited code blocks to be flush left.
Fixes bug with delimited code blocks inside lists etc.
2012-04-11 09:02:32 -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
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
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
7bc4dc37b2 Added PDF metadata (title,author) in LaTeX standalone + PDF output.
Closes #459.
2012-03-25 12:10:43 -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
Peter Wang
d74f3e1f28 Texinfo writer: retain directories in image paths. 2012-03-21 09:20:30 +11:00
John MacFarlane
60fb915351 Use {} around ctable caption. Closes #445. 2012-03-12 11:06:49 -07:00
John MacFarlane
5f013051e2 Made man writer more robust.
Previously it assumed that inlines weren't normalized.
2012-03-09 13:39:19 -08:00
John MacFarlane
4a17d661ff EPUB reader: convert e.g. en_US from locale to en-US in language. 2012-03-09 09:25:24 -08:00
John MacFarlane
7a5f51eb95 Merge pull request #438 from michaelt/patch-2
Fix initial `Str "."` after `LineBreak` as well?
2012-03-07 12:50:56 -08:00
John MacFarlane
45aed51628 Merge pull request #437 from michaelt/patch-1
escape initial dot in code lines
2012-03-07 10:50:08 -08:00
John MacFarlane
8a8d4a8abc Set mainlang variable in context writer.
This parallels behavior of latex writer.  Mainlang is the last
of a comma-separated list of languages in lang.
2012-03-07 10:09:17 -08:00
Michael Thompson
2d1703e8a0 Fix initial Str "." after LineBreak as well? 2012-03-07 12:27:46 -05:00
Michael Thompson
698eb059b7 escape initial dot in code lines 2012-03-07 11:35:18 -05:00
John MacFarlane
30cafd913a Fixed ployglossia support in LaTeX template for multiple langs.
\setmainlanguage will now just use the last of a comma-separated
list of languages.
2012-03-05 09:07:14 -08:00
John MacFarlane
40133e8a7d Use <q> tags for Quoted items for HTML5 output.
The quote style can be changed by modifying the template
or including a css file. A default quote style is included.
2012-03-03 08:29:01 -08:00