John MacFarlane
f8df0f50fd
Added escaping of euro character to LaTeX writer.
...
Partially resolves #309 .
2011-09-23 14:58:16 -07:00
John MacFarlane
e3c560ac3d
RST writer: Fixed bug involving empty table cells.
...
isSimple was being calculated in a way that assumed there
were no non-empty cells.
Resolves #299 . Thanks to rmunoz for reporting the bug.
2011-09-05 19:13:30 -07:00
takahashim
724de8314c
allow footnotes followed by newline without space chars
2011-08-23 09:56:58 +09:00
John MacFarlane
24095e0615
ConTeXt writer: Changed 'descr' to 'description', fixed alignment.
2011-08-20 15:30:57 -07:00
John MacFarlane
fa03bf52cb
ConTeXt: Use buffering for footnotes containing code blocks.
...
Closes #291 .
2011-08-18 19:23:34 -07:00
John MacFarlane
f9ae93d854
ConTeXt: Escape # in link URLs.
...
Partially addresses #291 .
2011-08-18 12:16:39 -07:00
John MacFarlane
f2fb733e0d
Templates: Return empty string for json template.
...
Thanks to Dirk Laurie for pointing out the bug.
2011-08-18 10:49:19 -07:00
John MacFarlane
6c639d3420
HTML reader: Fixed bug parsing tables w both thead and tbody.
...
See bug #274 , which was not completely fixed by the last patch.
2011-08-01 11:56:15 -07:00
John MacFarlane
8be6cc210c
Added PRAGMA needed for ghc 6.12.
2011-07-30 19:58:46 -07:00
John MacFarlane
81381a9305
Removed applicative stuff in Markdown reader.
...
It requires parsec 3, and currently pandoc can build with parsec 2.
2011-07-30 19:43:20 -07:00
John MacFarlane
b66b7a791c
Markdown reader: Improved emph/strong parsing.
...
Ported code from pandoc2.
Now all tests pass.
2011-07-30 18:08:49 -07:00
John MacFarlane
2d14c9b436
Added nonspaceChar to Text.Pandoc.Parsing.
2011-07-30 18:08:02 -07:00
John MacFarlane
45b8520af8
Fix template problem for epub.
2011-07-28 18:53:59 -07:00
John MacFarlane
57821e1cdf
Added s5-url and slidy-url variables, instead of hard-coding.
...
If you want to put your slidy files in the slidy subdirectory,
for example, you can do
pandoc -t slidy -V slidy-url=slidy -s
2011-07-28 17:35:26 -07:00
John MacFarlane
0f0c1579f8
Smart quotes: handle '...hi' properly.
...
Also added test case.
2011-07-25 23:49:45 -07:00
John MacFarlane
a3327835be
Docbook writer: Use programlisting for code blocks.
...
Instead of screen, as before.
2011-07-24 23:36:30 -07:00
John MacFarlane
07c7cd1945
Docbook writer: Use CALS tables (instead of XHTML tables).
...
Reason: Some older docbook software does not work with XHTML
tables.
Closes #77 .
2011-07-24 23:24:03 -07:00
John MacFarlane
3162adbd9b
HTML writer: Removed English title on footnote back links.
...
This is incongruous in non-English documents.
2011-07-24 16:24:27 -07:00
John MacFarlane
7b4c1b171c
Use data: protocol to embed s5 css in <link> tags.
...
Using inline css didn't work properly with Chrome and Safari.
2011-07-24 11:36:54 -07:00
John MacFarlane
d6df566a75
Reordered offline slidy includes.
2011-07-24 10:39:46 -07:00
John MacFarlane
d5e0c449bd
Use yuicompressor-packed js for s5.
...
Removed s5/default/slides.js.comment,
s5/default/slides.js.packed. Added s5/default/slides.min.js.
2011-07-24 09:27:08 -07:00
John MacFarlane
c872d9f7ef
Insert CDATA around inline js/css in HTML, slidy.
2011-07-24 08:23:38 -07:00
John MacFarlane
835dc412d2
Enclose s5 scripts and css in CDATA tags.
2011-07-24 07:52:44 -07:00
John MacFarlane
35cef01659
RST reader: Partial support for labeled footnotes.
...
Also made simpleReferenceName parser more accurate, which
affects several other parsers.
2011-07-23 18:51:02 -07:00
John MacFarlane
81c403d2d1
Use \enquote{..} for latex quotes if template uses csquotes package.
...
This provides better support for foreign language quoting.
Thanks to Andreas Wagner for the idea.
2011-07-23 13:12:11 -07:00
John MacFarlane
6424e7d02c
Properly handle characters in the 128..159 range.
...
These aren't valid in HTML, but many HTML files produced by
Windows tools contain them. We substitute correct unicode
characters.
2011-07-23 12:43:01 -07:00
John MacFarlane
26418b7d14
HTML writer/templates: Made TOC more customizable.
...
The container for the TOC is now in the template, so users
can insert a header or other styling. Thanks to Bruce D'Arcus
for the suggestion.
2011-07-23 12:04:31 -07:00
John MacFarlane
48368061a1
LaTeX writer: don't set stVerbInNote unnecessarily.
2011-07-23 08:36:41 -07:00
John MacFarlane
fd34dcba85
Changed default template naming scheme.
...
Instead of latex.template, we now have default.latex.
An appropriate extension is added automatically if the value of
`--template` has no extension. So, `pandoc --template=special -t latex`
looks for `special.latex`, while `pandoc --template=special -t man`
looks for `special.man`.
2011-07-22 22:49:38 -07:00
John MacFarlane
18306c74fb
Deprecated --xetex
option - it is no longer needed.
...
Deprecated `writerXeTeX` and the `--xetex` option.
The latex writer now produces a file that can be processed
by latex, pdflatex, lualatex, or xelatex, so this option isn't
needed.
The option is still neded in markdown2pdf, however, which
has been modified to take some options that aren't in pandoc.
2011-07-22 13:11:46 -07:00
John MacFarlane
0cf2a631e8
LaTeX writer: Use \texttt and escapes instead of \verb!..!.
...
\verb is simply too fragile; it doesn't work inside command
arguments.
2011-07-22 12:19:34 -07:00
John MacFarlane
fe14bf9447
LaTeX reader: Handle \subtitle command.
...
If there's a subtitle, it is added to the title,
separated by a colon and linebreak. Closes #280 .
2011-07-21 13:33:51 -07:00
John MacFarlane
6c029621ed
LaTeX reader & writer: Use \and to separate authors.
...
Closes #279 .
2011-07-21 10:09:51 -07:00
John MacFarlane
71736869bb
ConTeXt writer: Made \start/stoptyping flush with margin.
...
This prevents extra blank lines.
2011-07-19 16:29:33 -07:00
John MacFarlane
8fd3d0bdbb
LaTeX writer: make verbatim environments flush to avoid extra space.
...
The indented `\end{verbatim}` was causing an extra blank line in
the output.
Closes #277 .
2011-07-19 16:25:01 -07:00
John MacFarlane
1c28c5308f
Added unexported Text.Pandoc.MIME.
...
Moved getMimeType from Text.Pandoc.Shared to Text.Pandoc.MIME,
so we won't have an API change.
2011-07-19 12:01:20 -07:00
John MacFarlane
e2aec87956
ODT writer: Construct META-INF/manifest.xml based on archive contents.
...
This fixes a bug in ODTs containing images. LibreOffice would signal
that these ODTs were corrupt, because the manifest.xml did not contain
a reference to the image files.
2011-07-17 23:21:59 -07:00
John MacFarlane
e980627769
Added getMimeType to Text.Pandoc.Shared.
2011-07-17 19:33:52 -07:00
John MacFarlane
b5da7adfb8
Un-URI-escape image filenames in LaTeX, ConTeXt, RTF, Texinfo.
...
Also do this when copying image files into EPUBs and ODTs.
Closes #263 .
2011-07-16 14:19:45 -07:00
John MacFarlane
8d13ff5bc3
HTML writer: Use embed tag for images with non-image extensions.
...
(e.g. PDFs).
Closes #264 .
2011-07-16 10:11:46 -07:00
John MacFarlane
dd59cd2341
HTML reader: treat Plain as Para when needed.
...
For example, in
Just a few glitches remaining.
<ul><li> In this situation, one loses the list.
</ul>
And in this, the preformatting.
<pre>Preformatted text not starting with its own blank line.
</pre>
Thansk to Dirk Laurie for noticing the issue.
2011-07-16 09:42:16 -07:00
John MacFarlane
934867f858
HTML reader: Handle tbody, thead in simple tables.
...
Closes #274 .
2011-07-15 21:16:49 -07:00
John MacFarlane
b30afc2009
Merge pull request #273 from qerub/master
...
Textile reader: Make it possible to have colons after links.
2011-07-11 08:31:29 -07:00
John MacFarlane
c83b578f58
LaTeX reader: Gobble option & space after linebreak \\[10pt].
2011-07-10 19:07:40 -07:00
John MacFarlane
4134dad500
Make HTML reader more forgiving of bad HTML.
...
* Skip spaces after <b>, <emph>, etc.
* Convert Plain elements into Para when they're in a list
item with Para, Pre, BlockQuote, CodeBlock.
An example of HTML that pandoc handles better now:
~~~~
<h4> Testing html to markdown </h4>
<ul>
<li>
<b> An item in a list </b>
<p> An introductory sentence.
<pre>
Some preformatted text
at this stage comes next.
But alas! much havoc
is wrought by Pandoc.
</pre>
</ul>
~~~~
Thanks to Dirk Laurie for reporting the issues.
2011-07-10 16:54:46 -07:00
John MacFarlane
b5411c06aa
Improved LaTeX tables.
...
* Use ctable package, which allows footnotes and
provides additional options.
* Made cell alignments work in multiline tables.
* Closes #272 .
2011-07-10 12:33:45 -07:00
John MacFarlane
09479ba7b2
LaTeX tables: more space btw lines, top-align cells.
...
Closes #271 .
2011-07-10 12:33:34 -07:00
Christoffer Sawicki
8fa4e8bff1
Textile reader: Make it possible to have colons after links.
2011-07-10 16:30:14 +02:00
John MacFarlane
ea0a09aef1
Fixed bug in slidy writer: unclosed div tag.
2011-07-06 17:24:40 -07:00
Kelsey Hightower
cf11673d83
EPUB writer: Add a meta element specify the cover.
...
Some EPUB e-readers, such as the Nook, require a meta element inside the
OPF metadata block to ensure the cover image is properly displayed.
When generating an EPUB using the `--epub-cover-image` option, this
patch adds the following meta element to the OPF metadata block in
`content.opf`:
<meta name="cover" content="cover-image" />
2011-07-04 23:39:50 -04:00