John MacFarlane
eebed6bc48
Added writerHtmlQTags
and --html-q-tags
option.
...
The previous default was to use `<q>` tags in HTML5.
But `<q>` tags are also valid HTML4, and they are not very
robust in HTML5. Some user agents don't support them,
and some CSS resets prevent pandoc's quotes CSS from working
properly (e.g. bootstrap). It seems a better default just
to insert quote characters, but the option is provided for
those who have gotten used to using `<q>` tags.
2013-01-15 18:50:36 -08:00
John MacFarlane
93b373d4eb
Added Brent Yorgey to Authors.
2013-01-15 13:43:36 -08:00
John MacFarlane
ffbe7cc10d
Added Denis Laxalde to Authors.
2013-01-15 13:32:23 -08:00
John MacFarlane
011c1cf4c9
ADded Arlo O'Keeffe to Authors.
2013-01-15 13:04:54 -08:00
John MacFarlane
bf3a911a1c
Changed Ext_autolink_urls -> Ext_autolink_bare_uris.
...
Added tests.
2013-01-15 12:44:50 -08:00
John MacFarlane
e9b3d5aa7a
Added lots of tests for bare URIs.
2013-01-15 12:28:31 -08:00
John MacFarlane
5971721ec1
Case-insensitive parsing of URI schemes.
2013-01-15 11:48:21 -08:00
John MacFarlane
95c02f6b57
Parsing: Improve oneOfStrings, export oneOfStringsCI.
...
oneOfStrings will now take the longest match it can in a
list of strings, so if 'foo' and 'foobar' are both included,
'foobar' will match even if 'foo' is first in the list.
2013-01-15 11:47:35 -08:00
John MacFarlane
e0e36ce543
Revised URI parser.
...
* It no longer uses Network.URIs URI parser, which is too restrictive
(not allowing unicode URIs unless encoded).
* It allows many more schemes.
* It better handles punctuation so as to avoid capturing trailing
punctuation in bare URLs.
2013-01-15 10:52:02 -08:00
John MacFarlane
7bc37e4414
Use 'fig:' instead of '\SOH' in title to indicate figure.
...
Revises 1a4b47e933
2013-01-15 08:46:09 -08:00
John MacFarlane
1a4b47e933
Implemented Ext_implicit_figures.
...
* In markdown reader, add a '\1' character to the beginning
of the title of an image that is alone in its paragraph,
if implicit_figures extension is selected.
* In writers, check for Para [Image alt (src,'\1':tit)] and treat
it as a figure if possible.
* Updated tests.
This is a bit of a hack, but it allows us to make implicit_figures
an extension of the markdown reader, rather than the writers.
2013-01-14 20:53:08 -08:00
John MacFarlane
56aa257ddb
Removed some cruft.
2013-01-14 20:18:53 -08:00
John MacFarlane
51e0bd277a
Parsing: Fixed uri -- escape unicode URLs.
...
Otherwise Network.URI.parseURI fails on e.g. Chinese
URLs. Changed an incorrect test in markdown-reader-more.
2013-01-14 17:38:34 -08:00
John MacFarlane
0ef24d1518
Added Ext_implicit_figures.
...
No code to hook this in yet.
2013-01-14 17:08:56 -08:00
John MacFarlane
127851ea61
Parsing: Simplified and improved singleQuoteStart.
...
This makes 's', 'l', etc. parse properly.
Formerly we had some English-centric heuristics, but they
are no longer needed now that we keep track of the last
'Str' position in state.
Closes #698 .
2013-01-14 16:06:45 -08:00
John MacFarlane
360f8a3d01
Makefile: make prep now handles updates to pandoc-types.
2013-01-14 15:15:09 -08:00
John MacFarlane
45895b561f
RST writer: Fixes bug with links with duplicate text.
...
We now (a) use anonymous links for links with inline URLs, and
(b) use an inline link instead of a reference link if the
reference link would require a label that has already been
used for a different link.
Closes #511 .
2013-01-13 23:00:05 -08:00
John MacFarlane
f191aa4a98
RST writer: Properly handle images with no alt text.
...
Closes #678 .
2013-01-13 20:24:34 -08:00
John MacFarlane
cc9fb46fa6
README: Cosmetic change in headerless table example.
...
Closes #696 .
2013-01-13 19:00:46 -08:00
John MacFarlane
88b678f00e
Documented line blocks in README.
2013-01-13 18:18:07 -08:00
John MacFarlane
9ee9096d07
Added tests for markdown line blocks and explicit header attributes.
2013-01-13 18:03:15 -08:00
John MacFarlane
6b5302e063
Markdown reader: Support RST-style line blocks.
...
This depends on the new Ext_line_blocks extension.
2013-01-13 12:34:18 -08:00
John MacFarlane
0598cf0fee
Moved lineBlockLines to Parsing.
...
This will be used by both RST and markdown readers.
2013-01-13 11:39:32 -08:00
John MacFarlane
b92b8e8a3d
RST reader: Refactored line block parser.
2013-01-13 11:29:00 -08:00
John MacFarlane
a2c93c5a33
RST writer: Allow soft breaks w continuations in line blocks.
2013-01-13 11:15:51 -08:00
John MacFarlane
5c067bb457
RST reader: Line block improvements.
...
* Use nonbreaking spaces for initial indent (otherwise lost in HTML and
LaTeX).
* Allow multiple paragraphs in a single line block.
2013-01-13 11:15:31 -08:00
John MacFarlane
5ecadd7bfa
Use line block in RST writer when a paragraph contains linebreaks.
...
Previously linebreaks weren't supported in RST, since RST
has no native linebreak construct.
2013-01-13 09:25:56 -08:00
John MacFarlane
15829d5c3a
Markdown writer: Support Ext_auto_identifiers and Ext_header_attributes.
2013-01-12 22:44:01 -08:00
John MacFarlane
c8022f0419
HTML reader: Added html5 tags to list of block-level tags.
2013-01-12 12:23:15 -08:00
John MacFarlane
70e308f2f9
Escape |
as \vert
in LaTeX math.
...
This avoids a clash with highlighting-kate's macros, which
redefine | as a short verbatim delimiter. Thanks to
Björn Peemöller for raising this issue.
2013-01-12 10:21:19 -08:00
John MacFarlane
f2aa5fd661
Fixed/simplified diff output for tests.
2013-01-12 10:21:07 -08:00
John MacFarlane
f07ce6fead
Changed hspace in last commit to 0.333em.
...
This seems to match the spacing of ~ exactly.
2013-01-11 20:44:39 -08:00
John MacFarlane
c29a1942d0
LaTeX writer: Use \hspace*
for nonbreaking space after line break.
...
Since `~` spaces after a line break are just ignored.
Closes #687 .
2013-01-11 20:40:00 -08:00
John MacFarlane
98bc0d17ab
Revised EPUB writer given changes in header attributes.
...
We need to ensure that all headers have attributes, since
this is no longer guaranteed by hierarchicalize.
Explicitly given headers remain the same.
2013-01-11 17:07:25 -08:00
John MacFarlane
f3f3638f21
EPUB writer: Download images at URLs.
2013-01-11 17:07:04 -08:00
John MacFarlane
449ddeb53b
Refactoring:
...
* Shared now exports fetchItem (instead of getItem) and openURL
* fetchItem has different parameters than getItem and includes
some logic formerly in the ODT and Docx writers
* getItem still used in SelfContained
2013-01-11 16:19:06 -08:00
John MacFarlane
8f7beb6d10
ODT, Docx writers: Properly handle URL refs for images.
...
These images are now downloaded instead of being ignored (as
used to happen in the docx reader) or causing an error (as
used to happen in the odt reader).
2013-01-11 15:45:19 -08:00
John MacFarlane
acfe1d96ee
pandoc.hs: Fix writerSourceDirectory when a URL is provided.
...
It should be the URL up to the path.
2013-01-11 15:44:50 -08:00
John MacFarlane
1cc4e7db52
ImageSize: Remove no longer exported readImageSize.
2013-01-11 15:44:16 -08:00
John MacFarlane
2a0ed1c433
Improvements to docx writer.
...
Avoid reading image files again when we've already processed them.
2013-01-11 13:41:17 -08:00
John MacFarlane
4e4c3537e0
Docx writer: Preliminary improvements.
...
* Use getItem to fetch images, so we can get them over the net
if they have absolute URLs.
* Added TODO notes for cleaning up the logic.
2013-01-11 12:17:41 -08:00
John MacFarlane
2685ebff0f
ImageSize: Use strict, not lazy bytestrings.
2013-01-11 12:11:37 -08:00
John MacFarlane
77d9ead1b2
Move getItem from SelfContained to Share; export getItem.
2013-01-11 11:30:31 -08:00
John MacFarlane
97a3cb2e86
Options: Added githubMarkdownExtensions.
...
Added github_markdown as input/output option.
2013-01-11 10:11:53 -08:00
John MacFarlane
791763d09f
Added markdown_phpextra as writer option.
2013-01-10 22:43:02 -08:00
John MacFarlane
f8db21fa16
Options: Added phpMarkdownExtraExtensions.
...
And added markdown_phpextra input/output format.
2013-01-10 22:39:47 -08:00
John MacFarlane
23ab5ffcb0
Implemented Ext_header_attributes.
...
This allows explicit attributes to be put on headers, using
a syntax like that for code blocks:
{#id .class .class k=v k=v}
2013-01-10 20:32:53 -08:00
John MacFarlane
1a7686ad79
Ext_header_identifiers -> Ext_auto_identifiers.
2013-01-10 19:58:39 -08:00
John MacFarlane
cf4cd2ccb0
More improvements in emailAddress parser.
2013-01-09 21:32:42 -08:00
John MacFarlane
a71641a2a0
Made email parser more correct.
...
Now it's based on RFC 822, though it still doesn't implement
quoted strings in email addresses.
2013-01-09 17:19:32 -08:00