Commit graph

620 commits

Author SHA1 Message Date
John MacFarlane
73e2d7976c Renamed link attribute extensions.
* Old `link_attributes` -> `mmd_link_attributes`
* Recently added `common_link_attributes` -> `link_attributes`

Note: this change could break some existing workflows.
2015-11-19 23:17:50 -08:00
John MacFarlane
244cd5644b Merge branch 'new-image-attributes' of https://github.com/mb21/pandoc into mb21-new-image-attributes
* Bumped version to 1.16.
* Added Attr field to Link and Image.
* Added `common_link_attributes` extension.
* Updated readers for link attributes.
* Updated writers for link attributes.
* Updated tests
* Updated stack.yaml to build against unreleased versions of
  pandoc-types and texmath.
* Fixed various compiler warnings.

Closes #261.

TODO:

* Relative (percentage) image widths in docx writer.
* ODT/OpenDocument writer (untested, same issue about percentage widths).
* Update pandoc-citeproc.
2015-11-19 23:14:23 -08:00
John MacFarlane
3f095ad40b Merge pull request #2509 from adunning/patch-2
Update LaTeX/ConTeXt link colour usage in README.
2015-11-19 21:01:18 -08:00
John MacFarlane
ed1173ace6 Rationalized behavior of --no-tex-ligatures and --smart.
This change makes `--no-tex-ligatures` affect the LaTeX reader
as well as the LaTeX and ConTeXt writers.  If it is used,
the LaTeX reader will parse characters `` ` ``, `'`, and `-`
literally, rather than parsing ligatures for quotation marks
and dashes.  And the LaTeX writer will print unicode quotation
mark and dash characters literally, rather than converting
them to the standard ASCII ligatures.

Note that `--smart` has no affect on the LaTeX reader.

`--smart` is still the default for all input formats when
LaTeX or ConTeXt is the output format, *unless* `--no-tex-ligatures`
is used.

Some examples to illustrate the logic:

```
% echo "'hi'" | pandoc -t latex
`hi'
% echo "'hi'" | pandoc -t latex --no-tex-ligatures
'hi'
% echo "'hi'" | pandoc -t latex --no-tex-ligatures --smart
‘hi’
% echo "'hi'" | pandoc -f latex --no-tex-ligatures
<p>'hi'</p>
% echo "'hi'" | pandoc -f latex
<p>’hi’</p>
```

Closes #2541.
2015-11-19 20:30:41 -08:00
John MacFarlane
1f2c37392c Added 'navigation' variable to beamer template.
Valid values are `empty` (the default), `horizontal`, `vertical`,
and `frame`.  Note that this changes the default behavior from
`horizontal` to `empty`.  Closes #2543.
2015-11-17 10:55:55 -08:00
John MacFarlane
6a226041ad Use generic example.com link in README and changelog. 2015-11-16 06:53:52 -08:00
Andrew Dunning
3026c8dc25 Fix math cross-reference. 2015-11-14 20:22:55 -05:00
Andrew Dunning
580a7fa38e Update LaTeX/ConTeXt link colour usage. 2015-11-14 20:17:31 -05:00
John MacFarlane
0f3a68a39d Added note about default for --email-obfuscation.
See #2528.
2015-11-14 13:57:07 -08:00
John MacFarlane
0a6aaf5e1b Added emoji extension to Markdown.
This is enabled by default in `markdown_github`.
Added `Ext_emoji` to `Extension` in `Text.Pandoc.Options` (API change).

Closes #2523.
2015-11-13 12:14:24 -08:00
John MacFarlane
03743a3596 Added Arata Mizuki to contributor list. 2015-11-12 18:52:21 -08:00
John MacFarlane
a4759d8fef Updated date on README. 2015-11-12 15:56:42 -08:00
John MacFarlane
562d051075 README: consistent capitalization for pandoc and Markdown. 2015-11-12 13:37:59 -08:00
John MacFarlane
c80c0df1fe EPUB writer: don't download linked media when data-external attribute set.
By default pandoc downloads all linked media and includes it in the
EPUB container.  This can be disabled by setting `data-external`
on the tags linking to media that should not be downloaded.

Example:

    <audio controls="1">
     <source src="http://www.sixbarsjail.it/tmp/bach_toccata.mp3"
     type="audio/mpeg"></source>
    </audio>

Closes #2473.
2015-11-12 13:27:41 -08:00
John MacFarlane
da05619118 Merge pull request #2472 from adunning/patch-1
Update LaTeX/ConTeXt variable usage in README.
2015-11-04 15:58:46 -08:00
John MacFarlane
532ae22c29 Textile reader: don't do smart punctuation unless explicitly asked.
Closes #2480.

Note that although smart punctuation is part of the textile
spec, it's not always wanted when converting from textile
to, say, Markdown.  So it seems better to make this an option.
2015-10-30 10:54:07 -07:00
Andrew Dunning
7c20cf11cf Note expanded support for abstract, keywords.
Based on <https://github.com/jgm/pandoc-templates/pull/144>, <https://github.com/jgm/pandoc-templates/pull/142>.
2015-10-23 09:03:53 -04:00
Andrew Dunning
52e03308b8 Update LaTeX/ConTeXt variable usage in README.
Accounts for changes in https://github.com/jgm/pandoc-templates/pull/141.
2015-10-22 14:22:28 -04:00
Andrew Dunning
3ad6e586f8 Add new variables for ConTeXt template to README. 2015-10-20 18:07:45 -04:00
John MacFarlane
9f4faa5ea5 Update date on README. 2015-10-20 10:17:57 -07:00
John MacFarlane
8193ebcd99 Allow use of ConTeXt to generate PDFs.
pandoc my.md -t context -o my.pdf

will now create a PDF using ConTeXt rather than LaTeX.

Closes #2463.
2015-10-20 08:16:17 -07:00
John MacFarlane
b49ab06e96 Merge pull request #2458 from mb21/lang-inlines
LaTeX and ConTeXt writers: support lang attribute on divs and spans
2015-10-19 23:02:08 -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
Benoit Schweblin
5f25cf7c9b Fixed auto_identifiers examples 2015-10-18 11:40:49 +01:00
John MacFarlane
504bf3f8e7 Support all frame attributes in Beamer. 2015-10-15 15:11:07 -07:00
Andrew Dunning
f472515a93 Update slides variables in README.
This reflects the inclusion of all reveal.js variables in <https://github.com/jgm/pandoc-templates/pull/134>.
2015-10-14 18:26:53 -04:00
Andrew Dunning
ffbe3a37b0 Add new LaTeX variables to README. 2015-10-14 13:49:38 -04:00
John MacFarlane
3cce552ff3 reveal.js template: add controls, progress variables.
Thanks to Grégoire Pineau.
2015-10-10 14:06:30 -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
John MacFarlane
ce07f1bd68 Man template improvements:
- Added comment stating that the page is autogenerated by
  pandoc, giving version.
- Added `adjusting` and `hyphenate` variables.
- Documented new variables.
2015-10-10 13:15:58 -07:00
Andrew Dunning
7a97ef75ec Correct setspace package usage in README.
Template configured to set `setstretch` directly rather than package options.
2015-10-08 16:27:26 -04:00
Andrew Dunning
5c803252fc Improve CSL documentation in README. 2015-10-08 13:37:26 -04:00
Andrew Dunning
32964ef860 Improve links and cross-references in README. 2015-10-08 12:04:17 -04:00
mb21
80b851a4cf Change variable to polyglossia-lang.name and .options
closes #2437
2015-10-07 22:53:09 +02:00
John MacFarlane
398547bb51 Minor change in README: and -> or.
We never need both polyglossia and babel.
2015-10-05 22:22:45 -07:00
Andrew Dunning
317a5441a8 Revise variables discussion in README. 2015-10-05 18:47:58 -04:00
John MacFarlane
6d0e586b2d Template updates.
Beamer:  added `innertheme`, `outertheme` variables.

LaTeX:  added `mainfontoptions`, `sansfontoptions`,
`monofontoptions`, `mathfontoptions`, `fontfamilyoptions`.
2015-10-03 17:01:01 -07: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
John MacFarlane
72bade01f5 Slightly improved description of citation locators in README. 2015-09-26 16:18:32 -07:00
mb21
7b0c1e0d37 Support bidirectional text output with XeLaTeX, ConTeXt and HTML
closes #2191
2015-09-26 22:22:24 +02:00
nickbart1980
d2bffb098e Give details of locator terms 2015-09-26 17:59:26 +00: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
John MacFarlane
546201cb46 Removed obsolete reference to default.csl.
Closes #2372.

@cinaeco as the pandoc-citeproc man page describes, the current
behavior if no style is specified is to look in
`~/.csl/chicago-author-date.csl`, and if nothing is found there,
to use a default version of chicago-author-date.csl.

You may want to open a separate issue on jgm/pandoc-citeproc
suggesting the use of `default.csl` rather than
`chicago-author-date.csl`.  I agree that this would make sense.
2015-08-25 13:35:21 -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
73824908aa Added --bash-completion option.
This generates a bash completion script.

To use:

     eval "$(pandoc --bash-completion)"
2015-08-13 15:27:47 -07:00
John MacFarlane
f78b5a4a5a Clarified what is "out of scope" in README and CONTRIBUTING.md. 2015-08-08 15:18:31 -07:00
mb21
a010b83a75 Updated readers, writers and README for link attribute 2015-08-07 12:38:37 +02:00
John MacFarlane
3e8590d8a4 Clarify docs on block quotes.
The space after `>` is optional.

Closes #2346.
2015-08-06 10:30:22 -07:00
John MacFarlane
5df099957e Text.Pandoc.Options: modifications for image attributes.
* Added `Ext_common_link_attributes` constructor to `Extension`
  (for link and image attributes).
* Added this to `pandocExtensions` and `phpMarkdownExtraExtensions`.
* Added `writerDpi` to `WriterOptions`.
* pandoc.hs:  Added `--dpi` option.
* Updated README for `--dpi` and `common_link_attributes` extension.

Patch due to mb21, with some modifications: `writerDpi` is now an
`Int` rather than a `Double`.
2015-07-27 21:52:43 +02:00
John MacFarlane
2a4dbc3dce README: Added space after backslash in image example.
See #2329.
2015-07-26 14:44:31 -07:00