-
Notifications
You must be signed in to change notification settings - Fork 75
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
Exporters are not working. #304
Comments
Hi @mobinmob, for formats other than HTML, latex and PDF, Marker uses the pandoc command to export. If pandoc is missing on the host, most of the formats won't work. I can confirm that it pandoc is missing from the flatpak version (I will work on fixing that). On bare metal, make sure pandoc is installed and try again. PDF export should work even without pandoc though, so if you are still experiencing problems with that, let me know (I haven't had issues with PDF export so far). |
Pandoc is installed in my system. Both my package and flatpak exhibit similar behavior unfortunately. I expected problems with my build, but not with the flatpak (I am primarily using flatpaks for proprietary programs with no issues).
from the flatpak. The flatpak has an extra warning: The errors above appear if I run the program from cli (bash, with LANG=C). |
Regarding the PDF issue, I haven't encountered that yet but I'll investigate it more. If you have access to a printer, you might try printing a document to see if that works (or simply opening the print dialog and printing to a pdf) to see if you can get errors or info from that. Under the hood PDF generation is done by printing the html view to a pdf. The syntax error is because the css file I'm no flatpak expert but the portal issue sounds like it could be from running an older version of flatpak (just spitballing)? Does the filechooser work properly for the marker flatpak for you when opening/saving/exporting files? |
Printing to a pdf file works for both my package and the flatpak.
Thank you! I am using Marker a lot, but I have not tried exporting to formats other than html until yesterday. I tried them because we attempted to package without the included mathjax (since the in-program preview and the html export seem to work without it).
i am running the latest stable release of flatpak (1.6.3). The filechooser does not appear for opening or saving files but it does for exporting. |
I'm having the same problem on an arch linux system with version 2020.04.04. Could this be a problem with the locale? Here
the name for the printer is "Print to File". On a German system it's called "In Datei drucken". I'm able to export the pdf with the printer dialog without problems. I found a similar issue in the Tor issue tracker. Maybe the problem stated in the patch applies here too? |
Hello, I have encounter similar issue with PDF printing with Gnome in French :
But when when I switch to English, it's works fine
|
Thanks for the input about the PDF export. GtkPrintSettings has no programmatic way to select "Print to File" as a target (other than using a string). It seems there are a few ways we can fix this:
As much as I think it is not user-friendly, I think option 3 is the way to go. I am really not keen on including a full LaTeX distribution in the package, and option 1 is only a partial fix :/ |
The PDF issue seems to be fixed with #321. Feel free to re-open if it isn't fixed for you all (has not been pushed to flatpak yet), so you must build from source). |
Hi ! |
Leaving locale as C breaks PDF export in Marker: fabiocolacio/Marker#304 (comment)
It's enough to set the decimal-point character to the default locale. Also reset locale after rendering. Leaving locale as C breaks PDF export in Marker: fabiocolacio/Marker#304 (comment)
This seems to be fixed in latest git. |
pdfs are overrated anyway ;) @fabiocolacio close this issue? |
I am trying to update Marker in void linux ( void-linux/void-packages#20727 ) and I can only export to html and latex. Every other exporter is not producing a file. I have the same problem with the flatpak.
The text was updated successfully, but these errors were encountered: