mb21
f3f6483510
LaTeX writer: \textarabic fix
2015-10-25 18:31:35 +01:00
John MacFarlane
a21833b638
Avoid compiler warning for unused identifier.
2015-10-22 21:05:52 -07:00
John MacFarlane
48b68aac43
Textile writer: support start number in ordered lists.
...
e.g. `#3`.
Partially addresses #2465 .
TBD: reader support.
2015-10-22 12:37:40 -07:00
mb21
9328f4cd3d
LaTeX and ConTeXt writers: support lang attribute on divs and spans
...
For LaTeX, also collect lang and dir attributes on spans and divs to set the lang,
otherlangs and dir variables if they aren’t set already. See #895 .
2015-10-18 17:01:37 +02:00
Andreas Lööw
f0c47907ca
Consider header files when determining whether to use csquotes.
2015-10-17 23:04:15 +02:00
John MacFarlane
504bf3f8e7
Support all frame attributes in Beamer.
2015-10-15 15:11:07 -07:00
John MacFarlane
047cb32dfc
Use unicode super/subscripts for digits in plain output.
2015-10-15 14:35:01 -07:00
John MacFarlane
6dc3b6585d
More changes to avoid compiler warnings on ghc 7.10.
...
* CPP around deprecated `parseTime`.
* Text.Pandoc.Compat.Locale -> Text.Pandoc.Compat.Time,
now exports Data.Time.
2015-10-14 10:06:18 -07:00
John MacFarlane
82b3e0ab97
Use custom Prelude to avoid compiler warnings.
...
- The (non-exported) prelude is in prelude/Prelude.hs.
- It exports Monoid and Applicative, like base 4.8 prelude,
but works with older base versions.
- It exports (<>) for mappend.
- It hides 'catch' on older base versions.
This allows us to remove many imports of Data.Monoid
and Control.Applicative, and remove Text.Pandoc.Compat.Monoid.
It should allow us to use -Wall again for ghc 7.10.
2015-10-14 09:09:10 -07:00
John MacFarlane
198862ee40
LaTeX writer: add \protect
to \hyperdef
in inline context.
...
This way we don't get an error when this is used as a moveable
argument.
Closes #2136 .
2015-10-13 21:48:14 -07:00
John MacFarlane
25e0e0bd2a
epub with --webtex
: include image file rather than data: URI.
...
Closes #2363 .
2015-10-13 21:19:43 -07:00
John MacFarlane
24f68654e9
RST writer: do header normalization only in "standalone" mode.
...
If we're producing a fragment, just skip normalization.
After all, the fragment might be somewhere in the middle
of the document. It's more important for fragments to
have consistency in rendering (so they can be pieced
together) than to normalize.
This closes #2394 . It's simpler and more robust than
my earlier fix.
2015-10-12 23:00:27 -07:00
John MacFarlane
fb51077712
Revert "RST writer: tweaks to header normalization."
...
This reverts commit 476b383c57
.
2015-10-12 22:44:37 -07:00
John MacFarlane
476b383c57
RST writer: tweaks to header normalization.
...
These changes are intended to make the writer more
useful to people who are processing small fragments,
which may for example look like this:
### third level header from previous section
## second level header
Previously such fragments got turned into two
headers of the same level. The new algorithm
avoids doing any normalization until we hit the
minimal-level header in the fragment (here, the
second level header).
Closes #2394 .
2015-10-12 22:04:40 -07:00
John MacFarlane
1e8a25ad69
Percent-encode more special characters in URLs.
...
HTML, LaTeX writers adjusted.
The special characters are '<','>','|','"','{','}','[',']','^', '`'.
Closes #1640 , #2377 .
2015-10-11 17:12:50 -07:00
John MacFarlane
0e78eba791
HTML reader/writer: better handling of "section" elements.
...
Previously `<section>` tags were just parsed as raw HTML
blocks. With this change, section elements are parsed as
Div elements with the class "section". The HTML writer will
use `<section>` tags to render these Divs in HTML5; otherwise
they will be rendered as `<div class="section">`.
Closes #2438 .
2015-10-11 15:25:49 -07:00
John MacFarlane
60dcaa37d5
Native writer: format Div properly, with blocks separated.
2015-10-11 15:14:35 -07:00
John MacFarlane
3e4713c2de
Merge pull request #2441 from mb21/polyglossia-lang
...
Change variable to polyglossia-lang.name and .options
2015-10-10 13:52:36 -07:00
mb21
80b851a4cf
Change variable to polyglossia-lang.name and .options
...
closes #2437
2015-10-07 22:53:09 +02:00
Alex Vong
319832cc19
Set the template variable $pandoc-version$ to pandocVersion by default.
...
* src/Text/Pandoc/Writers/Man.hs: Set $pandoc-version$ to be pandocVersion.
2015-10-01 02:24:34 +08:00
Alex Vong
f5e33e0dce
Set the template variable $hyphenate$ to true by default
...
* src/Text/Pandoc/Writers/Man.hs: Set $hyphenate$ to be true.
2015-10-01 02:24:34 +08:00
John MacFarlane
fdfc961284
Merge pull request #2419 from mb21/bidi
...
Support bidirectional text output with XeLaTeX, ConTeXt and HTML
2015-09-26 17:06:56 -07:00
mb21
7b0c1e0d37
Support bidirectional text output with XeLaTeX, ConTeXt and HTML
...
closes #2191
2015-09-26 22:22:24 +02:00
John MacFarlane
29668552c8
Removed unneeded import.
2015-09-26 10:27:55 -07:00
John MacFarlane
da1b599c96
Correctly recognize book documentclass in metadata.
...
Closes #2395 .
2015-09-25 23:28:38 -07:00
John MacFarlane
f232a0a720
Merge pull request #2369 from mb21/language-variables
...
`lang` variable is now in BCP47 format
2015-09-22 22:21:06 -07:00
Nikolay Yakimov
5788f62ef5
[RST Writer] Don't normalize heading levels below input minimum
2015-09-19 17:45:54 +03:00
John MacFarlane
4d49f76dbb
Markdown writer: in TOC, add links to headers.
...
Closes #829 .
2015-09-17 11:41:05 -07:00
John MacFarlane
bee255cbfe
Use user data directory for reference docx archive.
...
This allows the test suite to work without installing pandoc first.
It also brings the docx writer in line with the odt writer.
2015-09-09 10:16:45 -07:00
mb21
622df7034c
lang
variable is now in BCP47 format
...
strings are converted for LaTeX and ConTeXt output, closes #1614
2015-08-20 23:17:47 +02:00
John MacFarlane
0302330a27
RST writer: ensure that \
is inserted when needed...
...
...before Cite and Span elements that begin with a "complex"
element. Closes jgm/pandoc-citeproc#157 .
2015-08-13 23:20:22 -07:00
John MacFarlane
c82f3ad61e
RST writer: Don't insert \
when complex expression in matched pairs.
...
E.g. `` [:sup:`3`] `` is okay; you don't need `` [:sup:`3`\ ] ``.
2015-08-12 21:08:13 -07:00
John MacFarlane
0ad576eb1a
Docx writer: Moved invalid character stripping to formattedString
.
...
This avoids an inefficient generic traversal.
Updates f3aa03e
.
Closes #2356 .
2015-08-10 10:49:18 -07:00
mb21
a010b83a75
Updated readers, writers and README for link attribute
2015-08-07 12:38:37 +02:00
John MacFarlane
92d48fa65b
Updated readers and writers for new image attribute parameter.
...
(mb21)
2015-08-07 12:37:12 +02:00
John MacFarlane
9deb335ca5
ICML writer: changed type of writeICML
.
...
API change: It is now `WriterOptions -> Pandoc -> IO String`.
Also handle new image attributes.
(mb21)
2015-08-05 16:08:46 +02:00
John MacFarlane
4391c5f34c
ICML writer: Add Cite style to citations.
...
(mb21)
2015-08-05 16:08:46 +02:00
John MacFarlane
450bef90e0
DZSlides: Add role="note"
for speaker notes.
...
Closes #1693 .
2015-07-21 14:54:43 -07:00
John MacFarlane
6166cd7559
Removed unneeded import.
2015-07-16 17:06:57 -07:00
John MacFarlane
075ad9a406
LaTeX writer: Fixed detection of 'chapters' from template.
...
If a documentclass isn't specified in metadata, but the
template has a hardwired bookish documentclass, act as if
`--chapters` was used. This was the default in earlier
versions, but it has been broken for a little while.
2015-07-16 15:52:38 -07:00
John MacFarlane
6c32afc3c4
Updated to use cmark >= 0.4.
2015-07-14 22:51:23 -07:00
John MacFarlane
b8634b9f75
HTML writer: support speaker notes in dzslides.
...
With this change `<div class="notes">` and also `<div class="notes"
role="note">` will be output if `-t dzslides` is used. So we can
have speaker notes in dzslides too.
Thanks to maybegeek.
2015-07-13 22:50:17 -07:00
Tiziano Müller
f464e49142
DokuWiki: write $..$ instead of <math>..</math>
...
MathJax seems currently to be the only maintained math rendering
extension for DokuWiki and it uses $..$ instead of <math>..</math>.
2015-07-13 14:19:48 +02:00
Andrew Dunning
4850aaf046
Correct superscript/subscript.
2015-07-08 13:57:04 -04:00
John MacFarlane
9e528f4c0c
Fixed email javascript obfuscation with mailto: URLs.
...
This fixes a potential security issue. Because single quotes weren't
being escaped in the link portion, a specially crafted email address
could allow javascript code injection.
[Jim'+alert('hi')+'OBrien](mailto:me@example.com)
Closes #2280 .
2015-07-07 11:15:40 -07:00
John MacFarlane
e0a88df686
ConTeXt: use \goto
for internal links.
2015-07-01 12:11:45 -07:00
John MacFarlane
b5d3b4f608
Merge pull request #2255 from mchladek/odt_linebreak
...
Fix #2254 : OpenDocument writer adds space with hard line break
2015-07-01 11:49:58 -07:00
John MacFarlane
8e747004e6
ConTeXt writer: Added a % at end for \reference
to avoid spurious space.
2015-07-01 11:30:28 -07:00
Michael Chladek
125b0c7359
Do not add a carriage return after a hard line break in OpenDocument writer and reflect change in tests.
2015-07-01 09:43:36 -05:00
John MacFarlane
27754e170b
Removed unneeded import.
2015-06-28 23:59:10 -07:00