John MacFarlane
cfaa9acd18
Fixed Slidy/S5 output to allow --section-divs.
...
This is also a cleaner way of inserting the slide divs.
Resolves Issue #296 .
2011-04-16 12:16:24 -07:00
John MacFarlane
8ddf7f5dc7
Whitespace cleanup.
2011-04-16 10:37:47 -07:00
John MacFarlane
220bd121d8
Allow --section-divs with slidy output.
2011-04-16 10:33:44 -07:00
John MacFarlane
679113ab02
Revert API change in EPUB writer.
...
Instead of passing the epub cover image as a parameter, we now pass
it in the list of variables. This avoids the API change introduced
in f5cbb68534
without losing the
new functionality.
2011-04-16 09:54:05 -07:00
John MacFarlane
4b90ffe1bd
Allow '|' followed by newline in RST line block.
2011-04-11 14:45:42 -07:00
John MacFarlane
4ad9360a97
Fixed bug in footnote order in HTML.
...
CircleCode pointed out that the following markdown produces
out-of-order footnote markers in HTML:
-8<------------------------
some text^[with a footnote which will be #1 ]
issue
some other text^[with a footnote which will be #2 ]
-8<------------------------
This fixes the problem.
2011-03-28 16:54:37 -07:00
John MacFarlane
69b0c15030
Added FlexibleInstances pragma.
...
Thanks to Sivaram Gowkana for the patch.
2011-03-19 12:05:55 -07:00
John MacFarlane
6beba76f61
Changed uri parser so it doesn't include trailing punctuation.
...
So, in RST, 'http://google.com .' should be parsed as a link
to 'http://google.com ' followed by a period.
The parser is smart enough to recognize balanced parentheses,
as often occur in wikipedia links: 'http://foo.bar/baz_(bam) '.
Also added ()s to RST specialChars, so '(http://google.com )'
will be parsed as a link in parens.
Added test cases.
Resolves Issue #291 .
2011-03-18 11:30:20 -07:00
John MacFarlane
d1304e8356
OpenDocument writer: Use "First paragraph" style after most non-para blocks.
...
(Not just headers, as in the last patch.)
Patch from Andrea Rossato, slightly modified by JM.
2011-03-16 12:35:32 -07:00
John MacFarlane
f5cbb68534
Added --epub-cover-image option.
...
API change: Added a parameter for the cover image path to
writeEPUB.
Followed best practices outlined in
http://blog.threepress.org/2009/11/20/best-practices-in-epub-cover-images/
2011-03-13 12:42:16 -07:00
John MacFarlane
403bb521cd
Fixed bug in RST field list parser.
...
The bug affected field lists with multi-line items at the
end of the list.
2011-03-12 17:08:23 -08:00
John MacFarlane
e24ce1c11d
OpenDocument: Use special style for 1st para after heading.
...
"First paragraph" as opposed to "Text body." This allows
users to specify e.g. that only paragraphs after the first
paragraph of a section are to be indented.
Thanks to Andrea Rossato for the patch.
Closes github Issue #20 .
2011-03-12 13:38:04 -08:00
John MacFarlane
eebd77829c
Markdown+lhs reader: Require space after inverse bird tracks.
...
The point of the change is to allow html tags to be used freely
at the left margin of a markdown+lhs document.
Thanks to Conal Elliot for the suggestion.
2011-03-02 12:47:17 -08:00
John MacFarlane
84bf846503
LaTeX writer: Changed figure defaults to htbp.
...
This prevents "too many unprocessed floats." Resolves
Issue #285 .
2011-02-11 19:03:46 -08:00
John MacFarlane
37fa6df612
UTF8: Encode filenames.
...
(This is still needed, even with recent base.)
Partially resolves Issue #286 (though now there is a
new markdown2pdf problem).
2011-02-11 18:55:14 -08:00
John MacFarlane
47ba15f5a1
Revert "Use us-ascii charset in HTML template if --ascii option."
...
This reverts commit aec5489960
.
No need for this, since a UTF-8 charset will handle ascii just fine.
2011-02-06 10:30:52 -08:00
John MacFarlane
fb5faaa91e
HTML writer: Fixed footnote backrefs in --ascii mode.
2011-02-06 09:46:59 -08:00
John MacFarlane
aec5489960
Use us-ascii charset in HTML template if --ascii option.
2011-02-06 09:38:44 -08:00
John MacFarlane
8f408e4b7b
Added --ascii option.
...
Currently supported only in HTML writer.
2011-02-06 09:27:03 -08:00
John MacFarlane
9b38b69c94
Make --toc work in epub output.
2011-02-06 08:59:51 -08:00
John MacFarlane
79a0fbe146
HTML writer: Put line breaks in section divs.
2011-02-05 11:27:25 -08:00
John MacFarlane
cbe162ecbe
Make writerSectionDivs default to False.
2011-02-05 11:21:10 -08:00
John MacFarlane
6c0e86d144
HTML writer: stringify alt text.
...
Previously, if you had formatting in the label of an Image
element, you'd get escaped HTML in the alt attribute. Now
you just get a plain string version, which seems preferable.
2011-02-05 08:16:34 -08:00
John MacFarlane
bdf23d3a5d
Improved HTML table output (line breaks).
2011-02-04 23:35:10 -08:00
John MacFarlane
58929eb4e5
More changes to HTML output.
...
Removed blank lines. More consistent format.
2011-02-04 23:03:38 -08:00
John MacFarlane
ce4f9a3787
HTML writer: Spacing adjustments for Plain and RawHtml blocks.
2011-02-04 21:05:48 -08:00
John MacFarlane
99cb6076f8
Improved new HTML format; restored original --no-wrap behavior.
2011-02-04 20:12:17 -08:00
John MacFarlane
f9dcea6655
HTML writer: More normal line breaks.
...
Also removes any distinction between --no-wrap and default HTML
output.
Resolves Issue #134 .
2011-02-04 18:37:02 -08:00
John MacFarlane
221177c272
Shared: Minor refactoring.
2011-02-04 18:32:54 -08:00
John MacFarlane
70405ef98a
normalize: Normalize spaces too.
...
In normal form, Space elements only occur to separate two non-Space
elements. So, we never have [Space], or [, ..., Space].
2011-02-04 13:43:38 -08:00
John MacFarlane
d4b71a6423
Markdown reader: Simplified and corrected footnote block parser.
2011-02-01 22:35:27 -08:00
John MacFarlane
e898f0abef
Improved fix to markdown noteBlock parser.
...
The last patch did not handle cases with > 4 spaces.
Also added a more general test case.
2011-01-31 20:42:49 -08:00
John MacFarlane
f282b462bb
Markdown reader: Fixed whitespace footnote bug (Jesse Rosenthal).
...
The problem was in input like this:
[^1]: note
not in note.
Also added a test case for this.
2011-01-31 20:05:11 -08:00
John MacFarlane
cf0a843239
UTF8: Use #if instead of #ifdef.
2011-01-30 17:01:50 -08:00
John MacFarlane
b1b6d0f859
UTF8 module: Use base 4.2 IO if available.
...
This gives us proper line endings on windows, and some speed
improvements.
We fall back to the old functions if base < 4.2.
hGetContents is now exported.
2011-01-30 16:01:31 -08:00
John MacFarlane
71ca44db6e
LaTeX reader: Fixed bug with whitespace at beginning of file.
...
Previously a file beginning " hi" would cause a parse error.
Also cleaned up comment parsing.
2011-01-30 08:21:48 -08:00
John MacFarlane
8a3fd7606f
Markdown reader tables: Fixed bug in alignments.
...
Previously pandoc got confused by blank rows in the header.
2011-01-29 23:09:07 -08:00
John MacFarlane
caa091e810
Highlighting: Fixed non-highlighting-kate version of highlightHtml.
2011-01-29 23:08:29 -08:00
John MacFarlane
22969c1b9c
HTML writer: avoid doubled <code> tag for highlighted inline code.
2011-01-29 16:11:16 -08:00
John MacFarlane
9f28acba9d
Fixed highlighting for inline code.
...
highlightHtml in Highlighting now has a boolean argument that
selects between inline and block content.
Revised tests for new highlighting-kate.
2011-01-29 16:04:07 -08:00
John MacFarlane
387a2b365e
Shared: Fixed bug in normalize revealed by tests!
2011-01-29 10:03:31 -08:00
Josef Svenningsson
d8d0f46c4c
Add possibility to use listings package for code blocks and
...
inline code in the LaTeX writer.
2011-01-28 21:09:38 -08:00
John MacFarlane
7f5130709b
RST reader: skip blanklines at beginning, not all leading spaces.
...
If you skip all spaces, it becomes impossible to start with
a blockquote.
2011-01-28 12:30:33 -08:00
John MacFarlane
5ba5373ec6
Shared: Make 'normalize' more generic.
...
Now it can transform an Inline, [Inline], Block, [Block], or Pandoc.
2011-01-28 09:35:43 -08:00
John MacFarlane
f90e18b955
RST reader: Skip blank space at beginning.
...
Resolves Debian Bug #611328 .
2011-01-28 08:52:54 -08:00
John MacFarlane
382564ed9e
RTF writer: Embed images when possible.
...
* Resolves Issue #275 .
* PNG and JPEG supported.
* Export rtfEmbedImage.
2011-01-28 08:42:04 -08:00
John MacFarlane
f8dca6ccbc
Add support for attributes in inline Code.
...
Additional related changes:
* URLs in Code in autolinks now use class "url".
* Require highlighting-kate 0.2.8.2, which omits the final <br/> tag,
essential for inline code.
2011-01-26 20:44:25 -08:00
John MacFarlane
703c421c9e
RST reader: Improved field lists.
...
Field lists now work properly with block content.
(Thanks to Lachlan Musicman for pointing out the bug.)
In addition, definition list items are now always Para instead
of Plain -- which matches behavior of rst2xml.py.
Finally, in image blocks, the alt attribute is parsed properly
and used for the alt, not also the title.
2011-01-26 17:23:57 -08:00
John MacFarlane
80f5a89a0b
LaTeX reader: Fixed an incomplete pattern match.
2011-01-26 17:23:56 -08:00
John MacFarlane
422bba202e
RST reader: Include line breaks in raw field list parser output.
...
Note: field list items can have lists, etc. as values.
2011-01-26 17:23:56 -08:00