Commit graph

9603 commits

Author SHA1 Message Date
John MacFarlane
312db3b851 INSTALL.md: updated docs for the linux package. 2017-10-23 23:08:51 -07:00
John MacFarlane
ecb5475a2a Back to using [WARNING] and [INFO] to mark messages. 2017-10-23 23:01:37 -07:00
John MacFarlane
fda0c0119f Implemented fenced Divs.
+ Added Ext_fenced_divs to Extensions (default for pandoc Markdown).
+ Document fenced_divs extension in manual.
+ Implemented fenced code divs in Markdown reader.
+ Added test.

Closes #168.
2017-10-23 22:45:28 -07:00
John MacFarlane
896803b0d5 HTML reader: htmlTag improvements.
We previously failed on cases where an attribute contained a `>`
character. This patch fixes the bug.

Closes #3989.
2017-10-23 17:29:32 -07:00
John MacFarlane
1a82ecbb68 More pleasing presentation of warnings and info messages.
!! warning
-- info
2017-10-23 15:00:11 -07:00
John MacFarlane
a27dc79073 Updated Glob upper bound. 2017-10-23 11:20:31 -07:00
John MacFarlane
cecf02e326 Fixed test for change in log level. 2017-10-23 11:20:22 -07:00
John MacFarlane
6d862ff954 Downgraded SkippedContent and DocxParserWarning from WARNING to INFO 2017-10-23 10:54:51 -07:00
John MacFarlane
cb63678517 Removed linux Dockerfile.alpine (main Dockerfile already alpine). 2017-10-23 09:24:46 -07:00
John MacFarlane
b4c6395001 Merge pull request #3988 from mb21/lettrine
LaTeX Reader: support \lettrine
2017-10-23 01:51:51 -04:00
John MacFarlane
33eff69047 Fixed make_tarball.sh to get VERSION set. 2017-10-22 21:41:23 -07:00
John MacFarlane
046e7b408a make_deb, make_tarball - fix default assignment of ARTIFACTS. 2017-10-22 21:19:17 -07:00
John MacFarlane
ccc09293c4 Updated linux Makefile to use alpine. 2017-10-22 15:05:29 -07:00
John MacFarlane
0463a57a5c Back to using alpine-based Dockerfile for linux build. 2017-10-22 15:04:49 -07:00
John MacFarlane
901c68a65f make_linux.sh tarball creation fix directory structure. 2017-10-22 14:50:42 -07:00
John MacFarlane
e720a44f68 Fixed bug in make_linux.sh path. 2017-10-22 14:30:49 -07:00
John MacFarlane
5a7a3f15d2 Linux package: new debian-based non-static build. 2017-10-22 14:29:20 -07:00
John MacFarlane
432be748ce Added linux/make_linux.sh.
This does a linux build and creates deb and tgz distributions.
2017-10-22 14:23:28 -07:00
John MacFarlane
6eb604095d Fixed detection of VERSION in make_macos_package.sh.
This broke when we uncapitalized cabal fields!
Now we get this from `pandoc --version`.
2017-10-22 14:22:53 -07:00
mb21
e2123a4033 LaTeX Reader: support \lettrine 2017-10-22 20:33:30 +02:00
mb21
05adbd6f19 LaTeX Reader: use opt function consistently 2017-10-22 20:33:30 +02:00
John MacFarlane
4aa84f4006 In rendering PandocParsecError, only print input at error location...
if the source name is `source` (i.e., the top level). Otherwise
results will be misleading, since what readM does is to look
up the source position of the error in the *original* input,
which may not match the input used by parseFromString or
in parsing from an included file.

Closes #3865.  Not a great fix, maybe there's something better
that could be done, but this should at least avoid misleading
messages.
2017-10-21 21:54:38 -07:00
John MacFarlane
204776c0c4 Merge pull request #3987 from wilx/master
Support comments in Pandoc templates in Emacs pandoc-template-mode.
2017-10-22 00:24:11 -04:00
Vaclav Haisman
733ccbafc6 Support comments in Pandoc templates in Emacs pandoc-template-mode. 2017-10-22 01:16:03 +02:00
John MacFarlane
25590b1812 Updated changelog.
11,681 words!
2017-10-21 12:15:00 -07:00
John MacFarlane
5164ecd0ec SelfContained: data-background-image instead of data-background.
Really closes #3979.
2017-10-20 23:16:53 -07:00
John MacFarlane
dc92c34827 Use doctemplates 0.2.1: allows $-- line comments in templates.
Closes #3806.
2017-10-20 22:44:49 -07:00
John MacFarlane
21328a8771 LaTeX reader: be more forgiving in parsing command options.
This was needed, for example, to make some minted options work.
2017-10-19 15:58:29 -07:00
John MacFarlane
f615d7bb98 LaTeX reader: Strip off quotes in \include filenames. 2017-10-19 15:36:18 -07:00
John MacFarlane
28bb5d610d LaTeX reader: support \expandafter.
Closes #3983.
2017-10-19 13:23:50 -07:00
John MacFarlane
e941ba05b9 LaTeX reader: handle \DeclareRobustCommand.
Currently it's just treated as a synonym for `\newcommand`.

Handles the second case mentioned in #3983.
2017-10-19 11:50:16 -07:00
John MacFarlane
9bb8a1f170 Clarify DATADIR in MANUAL 2017-10-18 08:51:15 -07:00
John MacFarlane
7ea2346adb Fix typo in changelog 2017-10-18 08:51:04 -07:00
John MacFarlane
181d7370bb Export Text.Pandoc.BCP47 2017-10-17 22:21:32 -07:00
John MacFarlane
99c1481c12 Split list of authors from MANUAL.txt into separate file, AUTHORS.md.
It was getting too long for a man page.
2017-10-17 20:30:20 -07:00
John MacFarlane
0bc30fa03d Updated AUTHORS 2017-10-17 20:14:38 -07:00
Albert Krewinkel
cab4f982f3
pandoc.lua: destructure attr for Link and Image
Make Attr values accessible through through the keys `identifier`,
`classes` and `attributes`.  This is already used in other elements with
attributes and is now fixed for Link and Image.
2017-10-17 21:45:27 +02:00
John MacFarlane
8aa972d9df Merge pull request #3980 from bfirsh/skip-spaces-in-image-options
Latex reader: Skip spaces in image options
2017-10-17 13:54:09 -04:00
Ben Firshman
9046dbadb1
Latex reader: Skip spaces in image options 2017-10-17 16:42:11 +03:00
Ben Firshman
d73fdbf895
Add tests for existing \includegraphics behaviour 2017-10-17 15:09:55 +03:00
John MacFarlane
c2de9d749c SelfContained: handle data-background attribute on section.
This should help with #3979.

In my test, I got a data uri for data-background. But it didn't
actually work in the browser (the background image didn't show).
Not sure whether this is a problem in reveal.js or a problem
in pandoc...
2017-10-16 23:10:05 -07:00
John MacFarlane
514958f5ea HTML writer: don't add data- prefix to unknown attributes beginning with data-.
Or we'll get data-data-blah.
2017-10-16 23:06:13 -07:00
John MacFarlane
61641f996f Revised command test 3971 to work with Windows. 2017-10-16 22:51:25 -07:00
John MacFarlane
c40857b389 Improved handling of include files in LaTeX reader.
Previously `\include` wouldn't work if the included file
contained, e.g., a begin without a matching end.

We've changed the Tok type so that it stores a full SourcePos,
rather than just a line and column.  So tokens keeep track
of the file they came from. This allows us to use a simpler
method for includes, which doesn't require parsing the included
document as a whole.

Closes #3971.
2017-10-16 22:05:34 -07:00
John MacFarlane
9cf9a64923 RST writer: correctly handle inline code containing backticks.
(Use a :literal: role.)

Closes #3974.
2017-10-16 20:54:43 -07:00
John MacFarlane
cba18c19a6 RST writer: don't backslash-escape word-internal punctuation.
Closes #3978.
2017-10-16 20:39:19 -07:00
John MacFarlane
d8804f4747 App: added --request-header option. 2017-10-15 22:13:15 -07:00
John MacFarlane
2f66d57616 Remove openURL from Shared (API change).
Now all the guts of openURL have been put into openURL from
Class.  openURL is now sensitive to stRequestHeaders in CommonState
and will add these custom headers when making a request.
It no longer looks at the USER_AGENT environment variable,
since you can now set the `User-Agent` header directly.
2017-10-15 22:11:38 -07:00
John MacFarlane
a1f7a4263f Class: add stRequestHeaders to CommonState, and setRequestHeader. 2017-10-15 22:09:28 -07:00
John MacFarlane
5e1c422389 Handle unknown options in form --latex-engine=foo.
Previously these were not triggering the helpful message
about option name changes.
2017-10-15 18:27:48 -07:00