Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example is not working #1

Open
vgangireddyin opened this issue Dec 16, 2018 · 1 comment
Open

Example is not working #1

vgangireddyin opened this issue Dec 16, 2018 · 1 comment

Comments

@vgangireddyin
Copy link

vgangireddyin commented Dec 16, 2018

Hi,

Below example mentioned is not working with latest pandoc version.

~ » curl -X POST \                                                    ve9u@ve9u
  http://localhost:8080/v1/convert \
  -H 'accept-encoding: gzip' \
  -H 'cache-control: no-cache' \
  -H 'content-type: application/json' \
  -d '{
        "fetcher": {
                "name": "data",
                "params": {
                        "data": "IyMjIEhlbGxvCgo+IEdvLVBhbmRvYw=="
                }
        },
        "converter":{
                "from": "markdown",
            "to" : "pdf",
            "standalone": true,
            "variable":{
                "CJKmainfont":"Source Han Sans SC",
                "mainfont":"Source Han Sans SC",
                "sansfont": "Source Han Sans SC",
                "geometry:margin":"1cm",
                "subject":"gsjbxx"
            },
            "template": "/app/data/docs.template"
        },
        "template": "binary"
}' --compressed -o test.pdf
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   542  100    86  100   456   6142  32571 --:--:-- --:--:-- --:--:-- 38714
------------------------------------------------------------
~ » cat test.pdf                                                      ve9u@ve9u
Unknown option -m.
Unknown option -a.
Try pandoc --help for more information.
------------------------------------------------------------
~ » pandoc -v                                                                                                                                                                                            ve9u@ve9u
pandoc 2.5
Compiled with pandoc-types 1.17.5.4, texmath 0.11.1.2, skylighting 0.7.4
Default user data directory: /home/ve9u/.pandoc
Copyright (C) 2006-2018 John MacFarlane
Web:  http://pandoc.org
This is free software; see the source for copying conditions.
There is no warranty, not even for merchantability or fitness
for a particular purpose.
------------------------------------------------------------

Thanks,
Venu.

@xujinzheng
Copy link
Member

the new version of pandoc is not support +smart argument

I remove this flag, please pull the latest code, and try it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants