John MacFarlane
dfe816163c
Removed Verbosity and MediaBag params from makePDF.
...
They can be obtained from CommonState since we're
in PandocIO.
2017-09-30 17:17:39 -05:00
John MacFarlane
9ec458f39f
Text.Pandoc.Class - add getVerbosity.
2017-09-30 17:15:55 -05:00
John MacFarlane
f3a80034ff
Removed writerSourceURL, add source URL to common state.
...
Removed `writerSourceURL` from `WriterOptions` (API change).
Added `stSourceURL` to `CommonState`.
It is set automatically by `setInputFiles`.
Text.Pandoc.Class now exports `setInputFiles`, `setOutputFile`.
The type of `getInputFiles` has changed; it now returns `[FilePath]`
instead of `Maybe [FilePath]`.
Functions in Class that formerly took the source URL as a parameter
now have one fewer parameter (`fetchItem`, `downloadOrRead`,
`setMediaResource`, `fillMediaBag`).
Removed `WriterOptions` parameter from `makeSelfContained` in
`SelfContained`.
2017-09-30 16:11:20 -05:00
John MacFarlane
9b7d652ab7
Merge pull request #3945 from tarleb/lua-mediabag
...
Lua mediabag module
2017-09-30 10:50:02 -04:00
Albert Krewinkel
c363519302
Provide make target to update lua module docs ( #3946 )
...
The pandoc module documentation in doc/lua-filters.md was automatically
generated from `data/pandoc.lua`. A make target is provided which uses
a lua filter to update the documentation.
2017-09-30 10:45:31 -04:00
Albert Krewinkel
53b6ffe9b8
doc/lua-filters.md: document mediabag submodule
2017-09-30 15:09:24 +02:00
Albert Krewinkel
358e8c2897
Run Lua filters before extracting media
...
This enables users to change the media files being extracted via lua
filters.
2017-09-30 09:57:03 +02:00
Albert Krewinkel
2f47e04206
Text.Pandoc.Lua: add mediabag submodule
2017-09-30 09:57:03 +02:00
John MacFarlane
950c68c835
Use latest skylighting.
2017-09-28 09:22:32 -07:00
Andrie de Vries
2f03f389e8
Support R filters #3940 ( #3941 )
2017-09-28 08:48:42 -07:00
Alexander Krotov
b5d064e8f0
Muse reader: parse anchors
2017-09-28 14:57:24 +03:00
John MacFarlane
e38c023007
Updated AUTHORS.
2017-09-27 22:35:33 -07:00
John MacFarlane
2314534d4d
RST writer: add header anchors when header has non-standard id.
...
Closes #3937 .
2017-09-27 20:42:04 -07:00
John MacFarlane
394b1985b1
Travis: add travis_wait to prevent timing out if no output.
2017-09-27 20:25:53 -07:00
John MacFarlane
9a47c7863b
Lua filters: set global FORMAT instead of args.
...
This changes the type of runLuaFilter.
2017-09-26 20:20:09 -07:00
John MacFarlane
3fe4aad5a1
Lua: set "arg" instead of "PandocParameters".
...
This is standard for lua scripts, and I see no reason
to depart from the standard here.
Also, "arg" is now pushed onto the stack before the script
is loaded. Previously it was not, and thus "PandocParameters"
was not available at the top level.
2017-09-26 10:07:15 -07:00
Alexander Krotov
2cdb8fe2e6
Muse reader: test metadata parsing
2017-09-26 19:31:10 +03:00
Alexander Krotov
3fb3af7579
Fix a typo: s/collabarators/collaborators/
2017-09-26 18:28:40 +03:00
Albert Krewinkel
3a7663281a
Org reader: update emphasis border chars
...
The org reader was updated to match current org-mode behavior: the set
of characters which are acceptable to occur as the first or last
character in an org emphasis have been changed and now allows all
non-whitespace chars at the inner border of emphasized text (see
`org-emphasis-regexp-components`).
Fixes : #3933
2017-09-25 09:31:29 +02:00
John MacFarlane
c78a101b7d
Fixe another changelog error.
2017-09-24 21:29:10 -07:00
John MacFarlane
ed3a1d10b6
changelog - fix a few spurious footnotes.
2017-09-24 21:22:28 -07:00
John MacFarlane
fc25e3a5b7
Added ghc 8.2.1 to tested-with stanza.
2017-09-24 13:12:41 -07:00
John MacFarlane
5a3fa5207d
Use pandoc-types 1.17.2.
2017-09-24 13:12:14 -07:00
Albert Krewinkel
2d416e203e
Document possible return values of lua filter functions
...
This is mostly copy'n'pasted from the pandocfilters documentation.
2017-09-24 12:04:15 -07:00
Albert Krewinkel
71f69cd086
Allow lua filters to return lists of elements
...
Closes : #3918
2017-09-24 12:04:15 -07:00
John MacFarlane
1d6e651e5a
Require pandoc-types 1.17.2.
2017-09-24 12:04:15 -07:00
John MacFarlane
438193197d
stack.yaml - use new pandoc-citeproc (from git repo).
2017-09-23 23:02:15 -07:00
John MacFarlane
e87db3739e
Fixed bug in determining writer for xelatex engine.
...
This revises the last commit, fixing #3931 .
2017-09-20 11:45:26 -07:00
John MacFarlane
582cb4b505
Fix and simply latex engine code in App.
...
Fixes #3931 .
2017-09-19 17:22:32 -07:00
John MacFarlane
d7917836f1
linux/Makefile - added interact target.
2017-09-19 16:17:06 -07:00
John MacFarlane
7c20fab3a7
stack.pkg.yaml - use latest pandoc-citeproc.
2017-09-17 20:29:41 -07:00
John MacFarlane
b1ee747a24
Added --strip-comments
option, readerStripComments
in ReaderOptions
.
...
* Options: Added readerStripComments to ReaderOptions.
* Added `--strip-comments` command-line option.
* Made `htmlTag` from the HTML reader sensitive to this feature.
This affects Markdown and Textile input.
Closes #2552 .
2017-09-17 13:01:27 -07:00
John MacFarlane
ce05814372
Adjusted headings in using-the-pandoc-api.md.
2017-09-16 23:17:33 -07:00
John MacFarlane
91ab987a52
Removed customizing-pandoc.md from doc/, added filters.md.
...
filters.md is essentially the scripting tutorial from the
webiste.
2017-09-16 23:00:20 -07:00
John MacFarlane
9add713654
Moved ldoc.ltp from doc to tools.
...
doc should be reserved for actual documents, I think.
@tarleb - will this cause a problem?
2017-09-16 22:47:49 -07:00
John MacFarlane
86730f49be
Markdown reader: added inlines, inlines1.
...
Eventually we'll add `processEmphasis` and `processBracketed`
to this.
This will allow us to conform to CommonMark rules and
fix #3903 and #1735 .
2017-09-16 11:10:19 -07:00
John MacFarlane
684f055248
Set PANDOC_READER_OPTIONS in environment where filters are run.
...
This contains a JSON representation of ReaderOptions.
2017-09-15 17:26:14 -07:00
John MacFarlane
04aba6bd51
Use skylighting 0.4.
2017-09-15 09:36:54 -07:00
John MacFarlane
b1aa67f0c9
Remove To/FromJSON instance for WriterOptions.
...
This required the (now removed) instances for Syntax.
It was too long, anyway, to be of use.
2017-09-15 09:36:23 -07:00
John MacFarlane
64472a468c
FromJSON/ToJSON instances for Reader, WriterOptions.
...
Depends on skylighting 0.3.5.
2017-09-14 22:38:23 -07:00
John MacFarlane
5849b89e52
Use texmath 0.9.4.2 in stack.yaml.
2017-09-13 10:05:47 -07:00
John MacFarlane
4177ee8626
Textile reader: allow 'pre' code in list item.
...
Closes #3916 .
2017-09-12 08:58:47 -07:00
John MacFarlane
2e2795412d
Move 'tables in footnotes' fix out of beamer part of default.latex.
...
This caused an error in beamer.
Footnotes already work in tables in beamer, without this code.
2017-09-12 08:31:59 -07:00
John MacFarlane
b71c7d97d1
Add default pdf engine for beamer.
2017-09-12 08:28:04 -07:00
John MacFarlane
6509501e90
Use defaultLatexEngine instead of head latexEngines
.
...
Partial functions make me nervous.
2017-09-12 08:25:41 -07:00
Ian
5e5ec586d4
Update MANUAL.txt ( #3919 )
...
Add URL for Prince HTML > PDF engine
2017-09-12 08:15:08 -07:00
Mauro Bieg
c7e3c1ec17
Support for PDF generation via weasyprint
and prince
( #3909 )
...
* Rename --latex-engine to --pdf-engine
* In `Text.Pandoc.Options.WriterOptions`, rename `writerLaTeXEngine` to `writerPdfEngine` and `writerLaTeXArgs` to `writerPdfArgs`.
* Add support for `weasyprint` and `prince`, in addition to `wkhtmltopdf`, for PDF generation via HTML (closes #3906 ).
* `Text.Pandoc.PDF.html2pdf`: use stdin instead of intermediate HTML file
2017-09-11 20:18:42 -07:00
John MacFarlane
ddecd72783
Merge pull request #3911 from labdsf/muse-reader-braces
...
Muse reader: parse {{{ }}} example syntax
2017-09-11 14:01:05 -07:00
John MacFarlane
1307b023af
Merge pull request #3917 from labdsf/muse-reader-emphasis-word
...
Muse reader: allow inline markup to be followed by punctuation
2017-09-11 10:57:19 -07:00
Alexander Krotov
8e4ee66563
Muse reader: allow inline markup to be followed by punctuation
...
Previously code was not allowed to be followed by comma,
and emphasis was allowed to be followed by letter.
2017-09-11 18:34:32 +03:00