John MacFarlane
46d343f474
Fixed bug in org with bulleted lists:
...
- a
- b
* c
was being parsed as a list, even though an unindented `*`
should make a heading. See
<http://orgmode.org/manual/Plain-lists.html#fn-1 >.
2014-11-13 23:40:18 -08:00
Caleb McDaniel
bd245450c4
Add tests for external links with anchors
2014-11-13 00:42:58 -05:00
Caleb McDaniel
196c4f2343
Account for external link URLs with anchors
...
Previously, if a URL had an anchor, such as
http://johnmacfarlane.net/pandoc/README.html#synopsis
the reader would incorrectly identify it as an internal link
and return "#synopsis" for the link in output.
2014-11-13 00:42:58 -05:00
John MacFarlane
43c1978fae
Merge pull request #1645 from neongreen/issue1636
...
Fix 'Ext_lists_without_preceding_blankline' bug.
2014-11-12 09:05:29 -08:00
Timothy Humphries
98161afa1a
DokuWiki writer: add external_images test
...
Add test for #1739 .
2014-11-09 02:18:58 -05:00
Timothy Humphries
ffae1567fd
DokuWiki writer: fix external images
...
Handles #1739 . Preface relative links with ":", absolute URIs without.
2014-11-09 00:35:29 -05:00
John MacFarlane
1cd65344b2
Merge pull request #1742 from tarleb/org-fix-links
...
Org fix links
2014-11-05 14:48:53 -08:00
Albert Krewinkel
e6cd8c9077
Org reader: allow empty links for gitit interop
...
While empty links are not allowed in Emacs org-mode, Pandoc org-mode
should support them: gitit relies on empty links as they are used to
create wiki links.
Fixes jgm/gitit#471
2014-11-05 23:15:28 +01:00
Albert Krewinkel
daaf635806
Org reader: absolute, relative paths in links
...
The org reader was to restrictive when parsing links, some relative
links and links to files given as absolute paths were not recognized
correctly. The org reader's link parsing function was amended to handle
such cases properly.
This fixes #1741
2014-11-05 22:27:25 +01:00
John MacFarlane
f3ac41937d
DokuWiki writer: Better handling of block quotes.
...
This change ensures that multiple paragraph blockquotes are
rendered using native `>` rather than as HTML.
Closes #1738 .
2014-11-04 14:52:19 -08:00
John MacFarlane
0169e10344
Fixed README and pandoc.cabal for TWiki reader.
2014-10-31 12:07:19 -07:00
John MacFarlane
1d268876f8
Merge pull request #1726 from AlexanderS/twiki-parser
...
TWiki Reader: add new new twiki reader
2014-10-31 12:02:14 -07:00
John MacFarlane
deaefb18ca
ODT writer: Correctly handle images without extensions.
...
Closes #1729 .
2014-10-30 15:54:04 -07:00
Alexander Sulfrian
2cf09aad55
TWiki Reader: update documentation
2014-10-30 20:02:17 +01:00
Alexander Sulfrian
79f25fb9ce
TWiki Reader: add basic syntax test
2014-10-30 20:02:05 +01:00
Alexander Sulfrian
c3780992ab
TWiki Reader: add new new twiki reader
2014-10-30 19:54:48 +01:00
John MacFarlane
189c034738
Merge pull request #1727 from toddsifleet/tws-fix-issue-1682
...
Strip querystring in ODT write
2014-10-28 20:00:19 -07:00
Todd Sifleet
8ad321d0d4
Strip querystring in ODT write
...
* Resolve #1682
* Strip querystring from filename before rendering ODT files, ODT cannot
handle querystrings in files.
2014-10-28 18:45:36 -07:00
John MacFarlane
93b82e8ea6
Clarified need for -s
to get character encoding info.
...
Closes #1724 , #1725 .
2014-10-28 10:21:44 -07:00
Jesse Rosenthal
60846471a3
Docx test: Remove Danish header test.
...
Redundant, now that we're testing for a more generalized sort of
internationalized blocks.
2014-10-25 16:02:31 -04:00
Jesse Rosenthal
c0ddcb359e
Docx reader: add tests for i18n headers.
...
This tests blockquotes and headers in Russian. Previous tests make sure
that this doesn't produce a regression in en-us Header and Blockquotes.
2014-10-25 16:00:27 -04:00
Nikolay Yakimov
96c4b9e2e6
Docx reader: fix for Issue #1692 (i18n styles)
...
This patch builds paragraph styles tree, then checks if paragraph has
style.styleId or style/name.val matching predetermined patterns.
Works with "Heading#" (name.val="heading #") for headings and
"Quote"|"BlockQuote"|"BlockQuotation" (name.val="Quote"|"Block Text")
for block quotes.
2014-10-25 15:54:44 -04:00
Nikolay Yakimov
3c894987b2
Docx Writer: Partial fix for #1607
...
International heading styles are inferred based on `<w:name val="heading #">` fallback, if there are no en-US "Heading#" styles
2014-10-24 23:57:06 +04:00
John MacFarlane
e16683b539
HTML writer: Make header attributes work outside top level.
...
Previously they only appeared on top level header elements.
Now they work e.g. in blockquotes.
Closes #1711 .
2014-10-23 10:27:14 -07:00
John MacFarlane
e4f3475eaa
DOCX writer: Look in user data dir for archive reference.docx.
2014-10-21 14:33:15 -07:00
John MacFarlane
78bdc08de7
Merge pull request #1706 from tarleb/org-symbol-entities
...
Org reader: parse LaTeX-style MathML entities
2014-10-21 10:11:19 -07:00
John MacFarlane
0714a363c6
Merge pull request #1668 from gbataille/widthFromRef2
...
Getting the page width from the reference file
2014-10-21 10:05:51 -07:00
John MacFarlane
e4c6997c81
Version bump to 1.13.2.
...
This is needed because of the addition of KaTeX to
HTMLMathMethod.
2014-10-20 21:21:18 -07:00
John MacFarlane
7f6bbfadf4
Pretty: Make CR + BLANKLINE = BLANKLINE.
...
This fixes an extra blank line we were getting at the end
of markdown fragments (as well as rst, org, etc.)
Closes #1705 .
2014-10-20 20:26:08 -07:00
John MacFarlane
88812c41ce
Recognize .icml extension and use icml writer. See #1707 .
2014-10-20 15:01:13 -07:00
Albert Krewinkel
a5eb02f6a7
Org reader: parse LaTeX-style MathML entities
...
Org supports special symbols which can be included using LaTeX syntax,
but are actually MathML entities. Examples for this are
`\nbsp` (non-breaking space), `\Aacute` (the letter A with accent acute)
or `\copy` (the copyright sign ©).
This fixes #1657 .
2014-10-20 22:57:36 +02:00
John MacFarlane
6eda32871f
Give better error messages when someone tries to convert pdf, doc, odt.
...
Closes #1683 .
2014-10-19 16:59:59 -07:00
John MacFarlane
d7169c715d
Parsing: fixed inlineMath
so it handles \text{..}
containing $
.
...
For example: `$x = \text{the $n$th root of $y$}`. Closes #1677 .
2014-10-19 16:42:56 -07:00
John MacFarlane
328ff8e71f
Markdown reader: allow startnum
to work without fancy_lists
.
...
Formerly `pandoc -f markdown-fancy_lists+startnum` did not work
properly.
2014-10-18 13:58:08 -07:00
John MacFarlane
84f6b1e41a
Merge pull request #1680 from shelf/master
...
Respect indent when parsing Org bullet lists
2014-10-18 13:20:27 -07:00
John MacFarlane
31713d572a
Merge pull request #1700 from tarleb/org-emphasis-fix
...
Org reader: fix rules for emphasis recognition
2014-10-18 13:19:42 -07:00
John MacFarlane
a1b5997af4
Merge pull request #1702 from tarleb/org-comment-trees
...
Org reader: Drop COMMENT document trees
2014-10-18 13:19:26 -07:00
Albert Krewinkel
e3c36ed6ce
Org reader: Drop COMMENT document trees
...
Document trees under a header starting with the word `COMMENT` are
comment trees and should not be exported. Those trees are dropped
silently.
This closes #1678 .
2014-10-18 22:11:53 +02:00
Albert Krewinkel
d571bec454
Org reader: fix rules for emphasis recognition
...
Things like `/hello,/` or `/hi'/` were falsy recognized as emphasised
strings. This is wrong, as `,` and `'` are forbidden border chars and
may not occur on the inner border of emphasized text. This patch
enables the reader to matches the reference implementation in that it
reads the above strings as plain text.
2014-10-18 12:47:59 +02:00
Timothy Humphries
f1f56e8533
Fix indent issue for definition lists
...
Tidy up fix for #1650 , #1698 as per comments in #1680 .
Fix same issue for definition lists with the same method.
2014-10-17 20:06:25 -04:00
Bjorn Buckwalter
7960013cd4
Escape spaces. Fixes jgm/pandoc#1694 .
2014-10-15 21:06:41 +02:00
Timothy Humphries
4f4b0f031d
Respect indent when parsing Org bullet lists
...
Fixes issue with top-level bullet list parsing.
Previously we would use `many1 spaceChars` rather than respecting
the list's indent level. We also permitted `*` bullets on unindented
lists, which should unambiguously parse as `header 1`.
Combined, this meant headers at a different indent level were
being unwittingly slurped into preceding bullet lists, as per
Issue #1650 .
2014-10-12 03:18:36 -04:00
John MacFarlane
8b60d430f2
Merge pull request #1674 from freiric/master
...
fix inDirectory to reset to the original directory in case an exception ...
2014-10-08 15:48:59 -07:00
John MacFarlane
2eaa0f6ab1
EPUB reader: Further URI handling improvements.
...
Now we outsource most of the work to `fetchItem'`.
Also, do not include queries in file extensions.
Improves fix to #1671 .
It is possible that this will have some unexpected effects, so
further testing would be good.
2014-10-08 15:45:50 -07:00
John MacFarlane
f8087b6c43
EPUB writer: correctly resolve relative URIs. (Closes #1671.)
2014-10-08 15:19:27 -07:00
John MacFarlane
a4d28cdd6d
Fixed absolute URI detection in EPUB writer. Closes #1672 .
2014-10-08 14:54:03 -07:00
Freiric Barral
24231623f3
fix inDirectory to reset to the original directory in case an exception occurs
2014-10-08 23:25:01 +02:00
John MacFarlane
d60707eed0
EPUB writer: Don't add sourceURL to absolute URIs!
...
Closes #1669 .
If there are further issues, please open a new, targeted issue on the
tracker. Some notes on the further issues you gestured at:
Data URIs are indeed dereferenced, but why is this a problem?
(The function being used to fetch from URLs is used for many different
formats. Preserving data URIs would make sense in EPUBs, but not
for e.g. PDF output. And by dereferencing we can get a smaller,
more efficient EPUB, with the data stored as bytes in a file rather
than encoded in textual representation.)
"absolute uris are not recognized" -- I assume that is the problem
just fixed. If not, please open a new issue.
"relative uris are resolved (wrongly) like file paths" -- can you
give an example?
`<base>` tag is ignored. Yes. I didn't know about the base tag. Could
you open a new issue just for this?
2014-10-08 11:52:47 -07:00
John MacFarlane
ccd04add67
Merge pull request #1666 from jronallo/webvtt-mime
...
add mime type for WebVTT
2014-10-05 15:19:40 -07:00
Grégory Bataille
8a1a5948be
Getting the page width from the reference file
...
Uses it to scale images that are too large.
When there is no reference files, default to a US letter portrait size
to scale the images
2014-10-05 14:53:06 +02:00