Commit graph

3348 commits

Author SHA1 Message Date
John MacFarlane
167012daf7 Export 'nested' in Parsing. 2012-09-12 08:45:03 -07:00
John MacFarlane
58a096c058 Text.Pandoc.Parsing: Handle trailing slash in 'uri'. 2012-09-12 08:45:03 -07:00
John MacFarlane
bad3c88cb6 HTML writer: Improve line breaks with <dd> tags.
We now put a newline between `</dd>` and `<dd>` when
there are multiple definitions.
2012-09-12 08:45:03 -07:00
John MacFarlane
0189997420 Changed mathjax cdn url so it doesn't use https.
(This caused problems when used with --self-contained.)

See #609.
2012-09-12 08:45:02 -07:00
John MacFarlane
4076e2f8be LaTeX reader: Better error messages for environments.
Now it should tell you that it was looking for \end{env},
instead of giving "unknown parse error."
2012-09-09 19:23:55 -07:00
John MacFarlane
14dba12f90 LaTeX reader: guard against "begin"/"end" in blockCommand. 2012-09-09 18:27:52 -07:00
John MacFarlane
ccf314829b LaTeX reader: Guard against "begin", "end" in inlineCommand.
Removed these from list of inline commands.
2012-09-09 18:21:53 -07:00
John MacFarlane
579cdac641 HTML reader: Handle nested <q> tags properly. 2012-09-09 18:12:29 -07:00
John MacFarlane
7fc804ed22 Parsing: Generalized type of withQuoteContext. 2012-09-09 18:12:18 -07:00
John MacFarlane
204ee87803 HTML reader: Parse <q> as Quoted DoubleQuote. 2012-09-09 10:46:01 -07:00
John MacFarlane
9bd371acd1 README: Properly escape $ characters.
Otherwise they mess up the LaTeX benchmark, which uses a version
of README converted to LaTeX.
2012-09-08 22:13:48 -07:00
John MacFarlane
c4639e5d2c RST reader: Allow dashes as separator in simple tables.
Closes #555.
2012-09-08 12:14:16 -07:00
John MacFarlane
3e8e20b4f5 Fixed spacing in context writer test. 2012-09-08 12:13:36 -07:00
John MacFarlane
38048671af Added papersize variable to latex, context templates. 2012-09-08 11:43:02 -07:00
John MacFarlane
7d0438897b LaTeX reader: Support obeylines environment.
Closes #604.
2012-09-06 16:27:01 -07:00
John MacFarlane
e2cc9e7ca1 LaTeX reader: Use curly quotes for bare straight quotes. 2012-09-06 16:02:56 -07:00
John MacFarlane
bc4f3af2c3 LaTeX reader: Fixed parsing of paragraphs beginning with a group.
Previously a paragraph beginning ``` {``}hello{''} ``` would be
parsed as two paragraphs.

Closes #606.
2012-09-06 15:28:25 -07:00
John MacFarlane
37c29bfa3d Textile reader: Improved speed of hyphenedWords.
This speeds up the textile  reader by about a factor of 4.
But the reader is still very slow, compared to others readers.
2012-09-06 14:08:59 -07:00
John MacFarlane
c2b520fb36 Makefile: Build profiling libraries in 'prep', added 'prof' target. 2012-09-06 13:30:34 -07:00
John MacFarlane
cd4408de5c Removed obsolete comment. 2012-09-06 10:41:13 -07:00
John MacFarlane
c9d1d97a28 Fixed footnotes bug in textile.
This affected notes occuring before punctuation, e.g.
`foo[1].`.

Closes #518.
2012-09-06 10:38:56 -07:00
John MacFarlane
c544f20d6f Made --id-prefix work in DocBook as well as HTML.
Closes #607.
2012-09-06 09:25:52 -07:00
John MacFarlane
fbab8e5286 Removed pcre3.dll from windows package.
It isn't needed unless highlighting-kate is compilled with the
pcre-light flag. By default, regex-prce-builtin is used.
2012-09-05 19:05:13 -07:00
John MacFarlane
6f0b465173 Docx writer: Fixed bug with nested lists.
Previously a list like

    1. one
        - a
        - b
    2. two

would come out with a bullet instead of "2."
Thanks to Russell Allen for reporting the bug.
2012-09-05 16:24:37 -07:00
John MacFarlane
784e6e65c4 LaTeX reader: Handle \slash command.
Closes #605.
2012-09-04 23:21:15 -07:00
John MacFarlane
b21363f1d5 Added (failing) test case for #518. 2012-08-25 22:11:31 -07:00
John MacFarlane
4913e198ae Beamer template: Remove English-centric strings in section pages.
Section pages used to have "Section" and a number as well as the
section title. Now they just have the title.  Similarly for part
and subsection.

Closes #566.
2012-08-25 21:54:03 -07:00
John MacFarlane
c554c61907 EPUB: Use title instead of "Title Page" in contents.
Otherwise we have a hard-coded English string, which looks
strange in ebooks written in other languages.  Using the
title for this entry seems a good solution.  Closes #572.
2012-08-25 21:36:43 -07:00
John MacFarlane
a6dcae1648 Merge commit 'd25656571a4662a4e67b195daed69e77d80c4c2c'
Conflicts:
	src/Text/Pandoc/Writers/ODT.hs
2012-08-23 19:39:58 -07:00
John MacFarlane
d7e658c643 Don't strip meta and link elements in epub metadata.
Per
http://idpf.org/epub/30/spec/epub30-publications.html#sec-metadata-elem,
a metadata element can contain not just Dublin Core elements but also
meta and link elements, but Pandoc currently strips those out.

Patch from aberrancy. Closes #589.
2012-08-23 19:09:56 -07:00
John MacFarlane
dc8e5970bf Implemented Ext_backtick_code_blocks.
This is the variant github prefers.
2012-08-21 20:11:10 -07:00
John MacFarlane
dc6a133dbf Added Ext_fenced_code_attributes. 2012-08-21 19:35:36 -07:00
John MacFarlane
b985d33406 Changed nomenclature, delimited -> fenced code blocks. 2012-08-21 19:21:51 -07:00
John MacFarlane
7b34dd8dd1 Added Ext_abbrevations for PHP markdown style abbreviation keys.
Note:  pandoc does not have an abbreviation element (yet) and
so currently when this extension is enabled, it just causes
pandoc to skip the abbrevation keys.
2012-08-19 11:15:32 -07:00
John MacFarlane
5d3b295568 Man writer: Escape - as \-.
Unescaped -'s become hyphens, while \-'s are left as ascii
minus signs.  That is preferable for use with command-line
options.

See  http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html.
Thanks to Andrea Bolognani for bringing the issue to our
attention.
2012-08-18 10:29:15 -07:00
John MacFarlane
454b8ebb96 Merge branch 'master' of github.com:jgm/pandoc 2012-08-17 18:55:59 -07:00
John MacFarlane
fd616665ac Docx line breaks: Use w:cr in w:r instead of w:br.
This seems to fix a problem viewing pandoc-generated
docx files in LibreOffice.
2012-08-17 18:27:48 -07:00
John MacFarlane
fa99793540 Removed stats.sh. 2012-08-16 20:23:03 -07:00
John MacFarlane
c7bd034fa8 Added comments in Options. 2012-08-16 19:57:03 -07:00
John MacFarlane
a6f2b96084 Moved renderTags' from HTML reader & SelfContained to Shared.
Improved removal of markdown="1" attribute in Markdow reader.
2012-08-15 09:42:16 -07:00
John MacFarlane
3745706fa2 Tweaks on markdown="1" handling. 2012-08-15 09:26:47 -07:00
John MacFarlane
25f78dc432 Added install target to Makefile. 2012-08-14 10:01:33 -07:00
John MacFarlane
bb0b5e9022 Markdown: Prevent parse failure on HTML blocks with -raw_html. 2012-08-13 20:04:17 -07:00
John MacFarlane
76edb6b848 Pretty: Fixed bug that caused combining characters to be dropped. 2012-08-13 15:52:41 -07:00
John MacFarlane
27304513f6 Added Ext_raw_html extension.
Closes #556 -- you can now specify markdown-raw_html as your
input format.  (Read: markdown minus raw_html.)
2012-08-12 22:04:23 -07:00
John MacFarlane
6f24fdb658 Added note to README on positioning of reference link defs. 2012-08-12 19:32:40 -07:00
John MacFarlane
f19e6496f5 Fixed titleblock in markdown, plain templates.
Now it is just a single string. Previously separate
title, author, and date variables were used, but this didn't
allow different kinds of title blocks.
2012-08-12 19:32:30 -07:00
John MacFarlane
e8e8468d69 Implemented Ext_mmd_title_block in markdown reader & writer. 2012-08-12 19:27:13 -07:00
John MacFarlane
5d83751af4 Implemented tex_math extensions in markdown writer. 2012-08-11 22:24:06 -07:00
John MacFarlane
e520762543 Implemented Ext_markdown_attribute in markdown writer. 2012-08-11 22:04:37 -07:00