Commit Graph
629 Commits
Author SHA1 Message Date
John MacFarlane 44120ea716 Implemented east_asian_line_breaks extension.
Text.Pandoc.Options: Added `Ext_east_asian_line_breaks` constructor to
`Extension` (API change).

This extension is like `ignore_line_breaks`, but smarter -- it
only ignores line breaks between two East Asian wide characters.
This makes it better suited for writing with a mix of East Asian
and non-East Asian scripts.

Closes #2586.
2015-12-12 17:28:52 -08:00
John MacFarlane b747243e8d Removed deprecated options --offline and --html5.
These have been deprecated forever.
2015-12-11 23:57:36 -08:00
John MacFarlane 536b6bf538 Implemented SoftBreak and new --wrap option.
Added threefold wrapping option.

* Command line option: deprecated `--no-wrap`, added
  `--wrap=[auto|none|preserve]`
* Added WrapOption, exported from Text.Pandoc.Options
* Changed type of writerWrapText in WriterOptions from
  Bool to WrapOption.
* Modified Text.Pandoc.Shared functions for SoftBreak.
* Supported SoftBreak in writers.
* Updated tests.
* Updated README.

Closes #1701.
2015-12-11 23:55:08 -08:00
John MacFarlane dd8df6cfbc Markdown reader: Improved pipe table relative widths.
Previously pipe table columns got relative widths (based
on the header underscore lines) when the source of one of the rows was
greater in width than the column width.  This gave bad results in some
cases where much of the width of the row was due to nonprinting
material (e.g. link URLs).  Now pandoc only looks at printable
width (the width of a plain string version of the source), which
should give better results.

Thanks to John Muccigrosso for bringing up the issue.
2015-12-03 11:02:45 -08:00
John MacFarlane 2df4f39db3 s/mb21/Mauro Bieg/ in README contributor list and changelog. 2015-11-24 22:55:03 -08:00
John MacFarlane e79fb6c3ff Updated README for new pipe table behavior. 2015-11-24 20:26:24 -08:00
John MacFarlane 4361dc0245 Define a meta-json variable for all writers.
This contains a JSON version of all the metadata, in the
format selected for the writer.

So, for example, to get just the YAML metadata, you can
run pandoc with the following custom template:

    $meta-json$

Closes #2019.  The intent is to make it easier for static
site generators and other tools to get at the metadata.
2015-11-23 20:40:27 -08:00
John MacFarlane 902c63ebea Document limitations of --self-contained.
See #2553.
2015-11-23 18:46:14 -08:00
John MacFarlane 39a92b23a3 Improved Citations section of README.
Added information about `link-citations` and a link
to the pandoc-citeproc man page.

Closes #2551.
2015-11-21 11:14:02 -08:00
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