Commit graph

1517 commits

Author SHA1 Message Date
John MacFarlane
765a777582 Added some failing test cases for apostrophes in French. 2011-12-26 23:03:20 -08:00
John MacFarlane
45958de0e1 Updated highlighting for highlighting-kate 0.4.
Text.Pandoc.Highlighting now exports just one new function,
'highlight', and reexports all the other functions from
highlighting-kate that are used in the writers.  This should
make it easy to switch highlighting engines if that is ever
desired.
2011-12-26 22:49:50 -08:00
Eric Seidel
6cd20c98fd change reference backlink from RawInline to Link so it gets rendered properly when using the xmlhtml package 2011-12-24 21:49:38 -06:00
John MacFarlane
cc18291baf LaTeX writer: Support highlighting for inline code. 2011-12-23 18:37:52 -08:00
John MacFarlane
77815c63db LaTeX writer: Have LHS files set the "listings" variable. 2011-12-23 18:26:03 -08:00
John MacFarlane
3fa98607db LaTeX writer: Implemented syntax highlighting for CodeBlocks. 2011-12-23 18:05:14 -08:00
John MacFarlane
fca95bf43c Removed highlighting flag. Highlighting support is now standard. 2011-12-22 13:24:43 -08:00
John MacFarlane
f61e09cb9a Added writerHighlight to WriterOptions. 2011-12-22 13:12:08 -08:00
John MacFarlane
b892b29eac Removed writerAscii in WriterOptions.
No longer needed or used.
2011-12-22 11:41:35 -08:00
John MacFarlane
7046cef263 Changed types of highlighting functions.
* highlightLaTeX, highlightHtml now return Maybe, not Either.
* This is because h-k's higdlightAs no longer returns an Either.
2011-12-22 00:33:38 -08:00
John MacFarlane
6636b894d1 Added a newline at end of footnotes ol. 2011-12-20 11:36:51 -08:00
John MacFarlane
5ff7f81b85 Restore xhtml style self-closed tags in HTML writer.
This requires blaze-html >= 0.4.3.0.
2011-12-20 11:26:10 -08:00
John MacFarlane
569fc4c67a Added highlightLaTeX stub when not compiled w/ highlighting. 2011-12-19 21:59:53 -08:00
John MacFarlane
a936e5d34f Added highlightLaTeX to Text.Pandoc.Highlighting. 2011-12-19 11:51:17 -08:00
John MacFarlane
5e38d6a689 HTML writer: Put classes "section" and "level[1-6]" on section divs.
(In HTML 5, the "section" class is omitted, since the tag itself
is "section.")
2011-12-18 13:09:58 -08:00
John MacFarlane
fba4f1f37e EPUB: Added customizable templates for epub pages.
epub-page.html, epub-coverimage.html, epub-titlepage.html.
2011-12-18 12:33:44 -08:00
John MacFarlane
1a22e75352 HTML writer: Retain ID attribute in highlighted code blocks. 2011-12-18 12:33:11 -08:00
John MacFarlane
f0e0e1e5d4 Highlighting: Use reads instead of read.
Fixes crash on startNum="abc".
2011-12-18 11:42:24 -08:00
John MacFarlane
bfa5ca01bc HTML writer: Use <del> for strikeout. 2011-12-18 11:08:04 -08:00
John MacFarlane
1c521519d9 HTML writer: Don't escape '.
This requires using a custom string escaper. If we use toHtml
from Blaze, we get &#39;, which is pointless unless you're
writing attributes in single quotes.
2011-12-17 23:58:15 -08:00
John MacFarlane
eaa41a677a Fixed line breaks in tds in table cells. 2011-12-17 23:52:59 -08:00
John MacFarlane
89c962a18c Use blaze-html instead of xhtml for HTML generation.
* This is a breaking API change for `writeHtml`.
* It introduces a new dependency on blaze-html.
* Pandoc now depends on highlighting-kate >= 0.4, which
  also uses blaze-html.
* The --ascii option has been removed, because of differences
  in blaze-html's and xhtml's escaping.
* Pandoc will no longer transform leading newlines in code
  blocks to `<br/>` tags.
2011-12-17 22:46:03 -08:00
John MacFarlane
78816497f3 Use pandoc-types 1.9.*. 2011-12-13 14:29:07 -08:00
John MacFarlane
412580c223 EPUB: Don't use any decimal entities.
kindlegen doesn't like them - even &#39;.
It should be safe to use the unescaped ' character, since
we know that all attributes are double quoted in the relevant
files.
2011-12-13 08:13:27 -08:00
John MacFarlane
d8d68c5110 EPUB writer: made unEntity handle errors better. 2011-12-12 09:17:54 -08:00
John MacFarlane
bdb7648de2 Fixed previous patch so it doesn't swallow a character! 2011-12-12 09:02:26 -08:00
John MacFarlane
1adb807407 EPUB: Use UTF-8 rather than decimal entities.
This addresses a problem with kindlegen pointed out by
Axel Kielhorn.
2011-12-12 00:12:44 -08:00
John MacFarlane
9f9a57de19 Markdown reader: Fixed backslash escapes in reference links.
Closes #312.
2011-12-05 21:33:47 -08:00
John MacFarlane
7512c9dd12 Fixed tests for escapes in markdown titles, URLs. 2011-12-05 21:33:40 -08:00
John MacFarlane
26371975f8 Markdown: Better handling of escapes in link URLs and titles. 2011-12-05 21:13:24 -08:00
John MacFarlane
e021819ade Fixed tests for escapes in links. 2011-12-05 21:13:06 -08:00
John MacFarlane
d34f85613a Changes to fit new charsInBalanced. 2011-12-05 20:55:23 -08:00
John MacFarlane
fa255f68ba Parsing: Removed charsInBalanced', added param to charsInBalanced.
The extra parameter is a character parser.  This is needed for
proper handling of escapes, etc.
2011-12-05 20:54:46 -08:00
John MacFarlane
c39cdc15ba Markdown reader: internal changes.
Refactored escapedChar into escapedChar', escapedChar.
2011-12-05 20:27:10 -08:00
John MacFarlane
7b971517b0 Parsing: Changed type of escaped to return Char 2011-12-05 20:22:27 -08:00
John MacFarlane
b2c58c11b2 Added more failing tests relating to issue #312. 2011-12-05 19:07:17 -08:00
John MacFarlane
a4364b3784 Added failing test for escape in markdown link title. 2011-12-04 22:37:28 -08:00
John MacFarlane
e53e538524 WebTeX math - use 'vertical-align:middle' for better results. 2011-12-04 16:07:04 -08:00
John MacFarlane
42eb96a8b3 SelfContained: Get mime type from HTTP request if possible.
--webtex --self-contained now works.
2011-12-04 15:58:31 -08:00
John MacFarlane
0126843751 SelfContained: Convert all url()s in css to data: uris. 2011-12-04 12:19:35 -08:00
John MacFarlane
fb5f9a90f1 New slidy directory for "self-contained." 2011-12-03 22:10:18 -08:00
John MacFarlane
bdec07bac9 Shared: Removed unescapeURI, modified escapeURI.
escapeURI now only escapes space characters, leaving unicode characters
as they are, instead of converting them to octets and URL-encoding them,
as before.  This gives more readable URIs.  User agents now do the
percent-encoding themselves.

URIs are no longer unescaped at all on conversion to markdown, asciidoc,
rst, org.

Closes #349.
2011-12-02 19:39:30 -08:00
John MacFarlane
7a09873a0b Added failing test case for issue #312. 2011-12-01 19:47:25 -08:00
John MacFarlane
3270c838b5 S5/slidy writer: Make footnotes appear on separate slide at end. 2011-11-29 13:36:50 -08:00
John MacFarlane
6eb6a99013 Use separate variables for meta-date, meta-author.
This makes footnotes work in author and date fields.
Closes #301.
2011-11-29 13:31:39 -08:00
John MacFarlane
05a26aef3a HTML writer: Put citations in span with class="citation".
See #313.
2011-11-29 12:49:39 -08:00
John MacFarlane
ce40d0d0c2 Markdown writer: Use setext headers for levels 1-2. 2011-11-24 11:14:32 -08:00
John MacFarlane
f027fd0eff --self-contained now works with <video> as well as <img>. 2011-11-24 10:04:25 -08:00
John MacFarlane
41eded5dd2 pandoc.hs : changed a couple writerName to writerName'.
This fixes a bug in which `pandoc --self-contained` would only
work properly if `-t html` were specified explicitly.
2011-11-23 20:15:24 -08:00
John MacFarlane
db1c16e856 Set --standalone implicitly when non-text output format.
(ODT, EPUB).  This restores pandoc's previous behavior.
You can again do `pandoc test.txt -o test.odt` and get a standalone
ODT file.

Resolves #351.
2011-11-22 14:22:22 -08:00