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

Pandoc update broke exportation #260

Open
sallirom opened this issue Nov 20, 2017 · 18 comments
Assignees
Labels
bug

Comments

@sallirom
Copy link

@sallirom sallirom commented Nov 20, 2017

Hi,

pandoc was updated 8 days ago. https://github.com/jgm/pandoc/releases/tag/2.0.2

It seems to be a slight change in the grammar of pandoc, or at least, I get this error message when I try to export the document:

Export error: --smart/-S has been removed. Use +smart or -smart extension instead. For example: pandoc -f markdown+smart -t markdown-smart. Try pandoc --help for more information.

Incidentaly, multimarkdown was also updated on the 13th of october.
https://github.com/fletcher/MultiMarkdown-6/releases

When I try to export using multimarkdown I get:

MultiMarkdown: invalid option "--smart" Try 'multimarkdown --help' for more information.

It is strange nobody else has said something about this, I am no expert, maybe I just messed all up.

Excuse me if that would be the case.

Thank you,

@wereturtle wereturtle added the bug label Nov 25, 2017
@wereturtle

This comment has been minimized.

Copy link
Owner

@wereturtle wereturtle commented Nov 25, 2017

Thanks for the heads up!

Until I get to fixing it, you can turn off the smart extension when exporting by unchecking the option in the Export dialog. Unfortunately, this won't help you with HTML previews, as that is baked in.

@wereturtle wereturtle added the in test label Nov 25, 2017
@sallirom

This comment has been minimized.

Copy link
Author

@sallirom sallirom commented Nov 28, 2017

Thank you very much!

you are the best :)

@Seraphli

This comment has been minimized.

Copy link

@Seraphli Seraphli commented Dec 20, 2017

I'm wondering when the new version will release. It has been almost a month.

@jkruppa

This comment has been minimized.

Copy link

@jkruppa jkruppa commented Jan 2, 2018

Unfortunately, I am forced to work on a Windows machine... I really liked your program, but I use mainly the Pandoc Preview, which is now not available...

Can you make a new version available?

@wereturtle

This comment has been minimized.

Copy link
Owner

@wereturtle wereturtle commented Jan 17, 2018

Hi @jkruppa, the next version will be releasing Soon (tm). In the meantime, try downloading an older version of the Pandoc zip from the Pandoc website and putting the Pandoc executables where the ghostwriter.exe is. The app will find that version of Pandoc first, as it would be in the same directory. (I assume you are using the portable version of ghostwriter, so you should not need to be an admin to do this.)

@andi-blafasl

This comment has been minimized.

Copy link

@andi-blafasl andi-blafasl commented Mar 28, 2018

Is there a release date on the road-map for the next ghostwriter version? It looks like many people facing this Issue.
The statement from January "Releasing Soon (tm)" is not really satisfactory ;-)

@wzhangbeibei

This comment has been minimized.

Copy link

@wzhangbeibei wzhangbeibei commented Jul 20, 2018

HI I got this reply
--smart/-S has been removed. Use +smart or -smart extension instead.
For example: pandoc -f markdown+smart -t markdown-smart.
--normalize has been removed. Normalization is now automatic.
Try pandoc --help for more information.

Then I use the recommended "pandoc -f markdown+smart -t markdown-smart"
and then I got this "pandoc: pandoc: openBinaryFile: does not exist (No such file or directory)"

Help me please---

@abenson

This comment has been minimized.

Copy link

@abenson abenson commented Jul 20, 2018

Are you running the latest pandoc and latest ghostwriter?

@tecosaur

This comment has been minimized.

Copy link

@tecosaur tecosaur commented Dec 29, 2018

I seem to be getting this issue with Ghostwriter version: 1.7.4, release: 13 (quote my package manager) and pandoc 2.2.1. This is on the linux distro Solus.

Export error: --smart/-S has been removed. Use +smart or -smart extension instead. For example: pandoc -f markdown+smart -t markdown-smart. Try pandoc --help for more information.

@wereturtle

This comment has been minimized.

Copy link
Owner

@wereturtle wereturtle commented Dec 29, 2018

@tecosaur I'm not seeing that issue with Pandoc 2.5 and ghostwriter 1.7.4. The source code that figures this all out looks like so:

image

The question is, does that particular version of Pandoc, as packaged for Solus, print out it's version in expected manner? ghostwriter parses for a specific version format from the output of pandoc --version. If it changed for any reason on Solus or in that particular version, you could end up in a case where ghostwriter thinks it's using Pandoc 1.x instead of 2.x. If you can, please provide the exact output of pandoc --version, and I can see if something went wrong with the version parsing.

@tecosaur

This comment has been minimized.

Copy link

@tecosaur tecosaur commented Dec 29, 2018

Here's my full output from pandoc --version.

pandoc 2.2.1
Compiled with pandoc-types 1.17.4.2, texmath 0.11.0.1, skylighting 0.7.1
Default user data directory: /home/tec/.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.
@tecosaur

This comment has been minimized.

Copy link

@tecosaur tecosaur commented Jan 20, 2019

@wereturtle I'd be great to hear back from you. I'd really like to use a ghostwriter to integrate with my latex tools, and not being able to use Pandoc is somewhat ruining this for me. If you'd be able to help me figure this out I would really appreciate this as it absolutely crucial for my use case; It's killing me given how much I like using the app.

@wereturtle

This comment has been minimized.

Copy link
Owner

@wereturtle wereturtle commented Feb 12, 2019

@tecosaur
I've installed Solus in a VM with ghostwriter and pandoc on it, all up to date. I could not replicate your issue. Pandoc is working fine in the preview and for exporting. Do you have any more specific steps I could follow? You've used the normal Solus Software Center tool to install both ghostwriter and pandoc, correct? Regardless, since things work on a fresh install of Solus, you might want to try reinstalling your OS to get things working.

@wereturtle

This comment has been minimized.

Copy link
Owner

@wereturtle wereturtle commented Feb 14, 2019

@tecosaur
Actually, were you trying to export to PDF with wkhtmltopdf? I ask because the error message you got looks suspiciously like the one in issue #412. If so, you can work around the issue by using the latex backend, or even export to ODT and then using LibreOffice to convert that to PDF.

@tecosaur

This comment has been minimized.

Copy link

@tecosaur tecosaur commented Feb 17, 2019

@wereturtle Just got a fresh install of Solus and it worked. Thanks for going to all the trouble of setting up a VM to test it 😃
(fyi - not using wkhtmltopdf)

@wereturtle

This comment has been minimized.

Copy link
Owner

@wereturtle wereturtle commented Feb 23, 2019

@tecosaur, that's great to hear! Thanks for the update!

@Korsani

This comment has been minimized.

Copy link

@Korsani Korsani commented Oct 1, 2019

Hi,
I'm facing the problem on Windows 10 with pandoc 2.7.3 and ghostwriter 1.8.0
Disabling Smart on export is ok, but preview is broken...

@wereturtle wereturtle reopened this Oct 4, 2019
@wereturtle wereturtle removed the in test label Oct 4, 2019
@wereturtle wereturtle self-assigned this Oct 4, 2019
@SobhanMP

This comment has been minimized.

Copy link

@SobhanMP SobhanMP commented Oct 15, 2019

Hi

using mathjax instead of mathml fixes the preview issue.
should this be added as an option?
or is there some other reason to prefer mathml?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
10 participants
You can’t perform that action at this time.