Commit graph

7479 commits

Author SHA1 Message Date
John MacFarlane
eced02d70e Markdown reader: Allow reference link labels starting with @...
...if citations extension disabled.  Example:  in

    [link text][@a]

    [@a]: url

`link text` isn't hyperlinked because `[@a]` is parsed as a citation.
Previously this happened whether or not the `citations` extension was
enabled. Now it happens only if the `citations` extension is enabled.

Closes #3209.
2016-11-05 21:14:20 +01:00
John MacFarlane
7db4dd46dc Allow file:// URIs as arguments.
Also improved default reader format detection.  Previously
with a URI ending in .md or .markdown, pandoc would assume HTML input.
Now it treats these as markdown.

Closes #3196.
2016-11-05 20:24:29 +01:00
John MacFarlane
e6422b1deb Improved error if they give wrong arg to --top-level-division. 2016-11-03 11:17:10 +01:00
Jesse Rosenthal
4a99e142ec Docx Reader: abstract out function to avoid code repetition. 2016-11-02 12:28:56 -04:00
Jesse Rosenthal
5684577da5 Docx reader/writer: Update tests for img title and alt
Closes #3204
2016-11-02 12:12:36 -04:00
Jesse Rosenthal
378603c770 Docx writer: Handle title text in images.
We already handled alt text. This just puts the image "title" into the
docx "title" attr.
2016-11-02 12:10:45 -04:00
Jesse Rosenthal
effc348965 Docx reader: Handle Alt text and titles in images.
We use the "description" field as alt text and the "title" field as
title. These can be accessed through the "Format Picture" dialog in
Word.
2016-11-02 12:10:45 -04:00
Jesse Rosenthal
1138ae6656 Docx reader utils: handle empty namespace in elemName
Previously, if given an empty namespace:

    (elemName ns "" "foo")

`elemName` would output a QName with a `Just ""` namespace. This is
never what we want. Now we output a `Nothing`. If someone *does* want a
`Just ""` in the namespace, they can enter the QName value explicitly.
2016-11-02 12:10:45 -04:00
John MacFarlane
bdda4b185b HTML reader: treat <math> as MathML by default...
unless something else is explicitly specified in xmlns.
Provided it parses as MathML, of course.

Also fixed default which should be to inline math if no
display attribute is used.
2016-11-02 16:43:36 +01:00
John MacFarlane
705df61198 LaTeX reader: Handle BVerbatim from fancyvrb. Fixes #3203. 2016-11-02 12:05:56 +01:00
John MacFarlane
eb5cb0f304 Handle hungarumlaut in LaTeX reader. Closes #3201. 2016-11-01 10:17:15 +01:00
hubertp-lshift
01a21dd43f [odt] Infer tables' header props from rows (#3199)
ODT reader simply provided an empty header list
which meant that the contents of the whole table,
even if not empty, was simply ignored.
While we still do not infer headers we at least have
to provide default properties of columns.
2016-11-01 10:07:39 +01:00
John MacFarlane
e08ffa562a Added a test case with a complex raw latex environment in Markdown. 2016-10-31 22:08:47 +01:00
John MacFarlane
5d02e478d0 LaTeX reader: allow for []s inside LaTeX optional args.
Fixes cases like:

    \begin{center}
    \begin{tikzpicture}[baseline={([yshift=+-.5ex]current bounding box.center)}, level distance=24pt]
    \Tree [.{S} [.NP John\index{i} ] [.VP [.V likes ] [.NP himself\index{i,*j} ]]]
    \end{tikzpicture}
    \end{center}
2016-10-31 22:04:22 +01:00
Albert Krewinkel
4f06e6c445
Org reader: support ATTR_HTML for special blocks
Special blocks (i.e. blocks with unrecognized names) can be prefixed
with an `ATTR_HTML` block attribute.  The attributes defined in that
meta-directive are added to the `Div` which is used to represent the
special block.

Closes: #3182
2016-10-30 20:23:53 +01:00
Albert Krewinkel
63bdc5d08f
Org reader: support the todo export option
The `todo` export option allows to toggle the inclusion of TODO keywords
in the output.  Setting this to `nil` causes TODO keywords to be dropped
from headlines.  The default is to include the keywords.
2016-10-30 13:20:25 +01:00
Albert Krewinkel
d5182778c4
Org reader: add support for todo-markers
Headlines can have optional todo-markers which can be controlled via the
`#+TODO`, `#+SEQ_TODO`, or `#+TYP_TODO` meta directive.  Multiple such
directives can be given, each adding a new set of recognized todo-markers.
If no custom todo-markers are defined, the default `TODO` and `DONE`
markers are used.

Todo-markers are conceptually separate from headline text and are hence
excluded when autogenerating headline IDs.

The markers are rendered as spans and labelled with two classes: One
class is the markers name, the other signals the todo-state of the
marker (either `todo` or `done`).
2016-10-30 10:27:47 +01:00
John MacFarlane
d2bc983455 Update pandoc-citeproc commit to use for binary packages. 2016-10-27 22:33:24 +02:00
John MacFarlane
b55310de7f stack.yamls - use git commit from pandoc-citeproc
so we don't have to wait for stackage's hackage mirror to update.
2016-10-26 23:36:59 +02:00
John MacFarlane
3ddb166f27 Updated man page. 2016-10-26 23:36:51 +02:00
John MacFarlane
4afb115e0a Updated authors in MANUAL.txt. 2016-10-26 22:32:23 +02:00
John MacFarlane
b41f9f762a Updated changelog. 2016-10-26 22:16:32 +02:00
John MacFarlane
f75921fa9b Updated man page. 2016-10-26 22:10:02 +02:00
John MacFarlane
626d0b7193 Print highlighting-kate version in --version. 2016-10-26 21:57:29 +02:00
John MacFarlane
bd71569483 Use lts-7.5 resolver. 2016-10-26 12:32:30 +02:00
John MacFarlane
fa5b0b6708 Use latest pandoc-citeproc. 2016-10-26 12:31:26 +02:00
John MacFarlane
3a255447fe Version to 1.18. 2016-10-26 12:24:55 +02:00
John MacFarlane
4473cd819c Fixed date on MANUAL.txt 2016-10-26 12:24:39 +02:00
Daniele D'Orazio
78e4fbda51 Markdown Reader: add attributes for autolink (#3183) 2016-10-26 12:18:58 +02:00
John MacFarlane
c46ad7c8db reveal.js: don't change slide title to level 1 header.
This also affects other HTML slide show formats.

Closes #2221.
2016-10-25 17:07:51 +02:00
John MacFarlane
b0df50f003 Minor changes to CONTRIBUTING.md. 2016-10-25 16:51:26 +02:00
John MacFarlane
c0e8c02ca4 Removed duplicate link refs. 2016-10-25 16:47:31 +02:00
John MacFarlane
14bcf97fd8 README.md: added link to INSTALL and examples and demo on website. 2016-10-25 16:43:12 +02:00
John MacFarlane
bb20f919c3 Added INSTALL.md, incorporating INSTALL + installing page from website. 2016-10-25 16:36:17 +02:00
John MacFarlane
b4fbe226a5 Document hyperref options for beamer in MANUAL. 2016-10-25 16:04:44 +02:00
John MacFarlane
7359ce60e5 Add hypersetup options to beamer templates (Jake Zimmerman). 2016-10-25 16:01:48 +02:00
John MacFarlane
bd2681904b Use pandoc-citeproc 0.10.2 in stack package builds. 2016-10-25 08:29:33 +02:00
John MacFarlane
5898598370 Updated changelog. 2016-10-24 23:00:51 +02:00
John MacFarlane
d51e475bad Export Text.Pandoc.Error in Text.Pandoc.
[API change]
2016-10-24 22:31:36 +02:00
John MacFarlane
7b1a9d7aca stack.yamls - use latest pandoc-citeproc. 2016-10-24 22:12:33 +02:00
John MacFarlane
10bd57ecb6 Fixed typo in deprecation warning. 2016-10-24 16:05:26 +02:00
John MacFarlane
b2c8b979d9 stack.yamls - use latest pandoc-citeproc. 2016-10-23 23:32:01 +02:00
John MacFarlane
fc061e6ad6 Updated changelog. 2016-10-23 23:21:42 +02:00
John MacFarlane
bf72a482eb Tighten up parsing of raw email addresses.
Technically `**@user` is a valid email address, but if we
allow things like this, we get bad results in markdown flavors
that autolink raw email addresses. (See #2940.)
So we exclude a few valid email addresses in order to
avoid these more common bad cases.

Closes #2940.
2016-10-23 23:12:36 +02:00
John MacFarlane
738806112b Allow binary formats to be written to stdout unless tty output.
Only works on posix.  On Windows, pandoc works as before and
requires an output file parameter for binary formats.

Closes #2677.
2016-10-23 22:16:00 +02:00
John MacFarlane
5ec7331349 Travis: Set ulimit -n 4096 before build. This seems necessary on OSX. 2016-10-23 21:56:08 +02:00
John MacFarlane
95d3966601 Travis: add to end of path to avoid a warning. 2016-10-23 21:51:07 +02:00
Thomas Weißschuh
96fa1daa6e fix example in documentation (#3176)
Errors are encountered while reading, not writing
2016-10-23 21:48:22 +02:00
Mauro Bieg
9dd18ebf34 ICML writer: replace partial function (!!) in table handling (#3175) 2016-10-23 21:42:33 +02:00
John MacFarlane
1d15f0e10f Update changelog. 2016-10-23 21:38:18 +02:00