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
John MacFarlane
21d74289ce
Removed Text.Pandoc.S5 -- no longer needed.
2011-11-21 15:26:11 -08:00
John MacFarlane
af085e0c60
Added --self-contained, integrated into src/pandoc.hs.
...
--offline is now a deprecated synonym for --self-contained.
TODO: Documentation, remove old S5 module.
2011-11-21 15:24:28 -08:00
John MacFarlane
10b23e85b7
Changed Offline module to SelfContained, offline to makeSelfContained.
2011-11-21 15:09:42 -08:00
John MacFarlane
1cd928b591
Added userdata directory parameter to fns in Offline.
2011-11-21 00:41:08 -08:00
John MacFarlane
9383260e20
Offline: Look for relative URLs in data directory if not found.
2011-11-20 12:32:54 -08:00
John MacFarlane
ef9395ced7
HTML writer: change s5-url to s5/default.
2011-11-20 12:11:38 -08:00
John MacFarlane
12a1ecc8b4
Offline: Recursively resolve @imports in css files.
2011-11-20 12:04:47 -08:00
John MacFarlane
3370fbe7c6
Converted Offline to use Tag String.
2011-11-19 19:30:27 -08:00
John MacFarlane
24d8961d05
Added Text.Pandoc.Offline module.
2011-11-19 00:20:00 -08:00
John MacFarlane
bea0fdf6e6
AsciiDoc: Don't use Roman numerals in ordered lists.
...
AsiiDoc doesn't support them.
2011-11-18 21:26:25 -08:00
John MacFarlane
1561d51cc5
Renamed to AsciiDoc. Fixed display math and escapes.
...
AsciiDoc does not seem to have consistent escaping rules.
2011-11-18 21:09:49 -08:00
John MacFarlane
c1710f9bde
Skip raw HTML blocks in asciidoc.
2011-11-18 19:44:15 -08:00
John MacFarlane
457571e0c8
Fixed continuations in asciidoc definition lists.
2011-11-18 19:38:00 -08:00
John MacFarlane
f5af4903df
Removed link title in asciidoc.
...
Apparently it is not supported.
2011-11-18 18:31:32 -08:00
John MacFarlane
965c9415b0
Ensure blank line before html passthrough.
2011-11-18 18:22:09 -08:00
John MacFarlane
11f6177670
Implemented ordered lists in asciidoc.
2011-11-18 18:19:47 -08:00
John MacFarlane
40c7d096cc
Implemented bullet lists in asciidoc writer.
2011-11-18 17:50:41 -08:00
John MacFarlane
a9a4e24d29
Added fields to track list levels.
2011-11-18 17:01:38 -08:00
John MacFarlane
e8e5ad210f
Added comment about limitations of asciidoc conversion.
2011-11-18 13:23:09 -08:00
John MacFarlane
f6a0e75389
Supported tables in asciidoc, added table tests.
2011-11-18 13:19:22 -08:00
John MacFarlane
23c26bbc65
Pretty: Added chomp combinator.
2011-11-18 13:19:22 -08:00
John MacFarlane
823c0bcda9
Indicate when a multiblock footnote is omitted.
2011-11-17 23:13:29 -08:00
John MacFarlane
fcfbbd2caa
Supported definition lists.
2011-11-17 22:35:39 -08:00
John MacFarlane
b7cbd42d07
Use attributes for author/date.
2011-11-17 00:52:45 -08:00