Commit graph

31 commits

Author SHA1 Message Date
TheJackiMonster a33249fc9d
Added guard to catch errors with translation
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2022-05-17 11:43:22 +02:00
Daniele Scasciafratte b66208791a feat(pandoc): hard_line_breaks support 2022-01-17 15:33:24 +01:00
TheJackiMonster 08e8714f1d
Delegated export stderr output without exit code zero to warnings and fixed one crash during loading
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2021-11-27 23:03:31 +01:00
TheJackiMonster 25adfd2437
Adjusted inconsistent pandoc behavior depending on installed version
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2021-11-27 16:47:38 +01:00
DarkRedman 49f0c298c3
Fixed pandoc command arguments (#790)
* Fixed pandoc command arguments

`--base-header-level` throws a new export error because it is deprecated, now we should use `--shift-heading-level-by`

* Adjusted default and min value for base-header

Co-authored-by: Tobias Frisch <thejackimonster@gmail.com>
2021-04-10 14:58:00 +02:00
Jan Wester ff2cbca028 Converted most print statements to use logging
Some snippets have yet to be converted due to the more complex nature
of those snippets, and to keep things neat a separate commit makes more
sense for those.
2021-04-08 18:44:28 +02:00
TheJackiMonster 12be4c3a3d
Fixed all Python syntax warnings 2021-02-21 23:45:34 +01:00
leela decb60cbef change markdown to "Markdown" in....
...A universal document converter. Can be used to convert markdown to a wide range of other formats.
see https://en.wikipedia.org/wiki/Markdown
2019-09-29 09:09:31 -06:00
Jan Wester 9317dc97d8 Do not reinvent QFileDialog's default suffix
According to issue #608 we were silently overwriting files when there
was a suffix being generated for a chosen export filename when one was
missing to begin with. Unfortunately, this helpful feature avoids all
the conveniences offered by QFileDialog in regards to alerting the user
to overwriting an existing file. Worse still, this feature already
exists in QFileDialog and the native APIs it can rely on.

This patch reimplements QFileDialog.getSaveFileName to allow the use of
the default suffix feature as functions.getSaveFileNameWithSuffix and
removes most of the magic involved with the old solution.
2019-09-07 15:59:45 -06:00
Curtis Gedak 1711f8decf Fix pandoc export crashes is project title is empty
Fixes #535
2019-05-31 10:19:04 -06:00
Youness Alaoui f1baab8b3a Fix crash if using a custom pandoc installation
Fixes #563
2019-05-20 09:39:45 -06:00
Youness Alaoui d7203ddacf Fix crash when previewing pandoc HTML with QTextEdit as web rendering engine. 2019-02-11 10:27:35 -07:00
Curtis Gedak 98a629454e Add support for pandoc v2 command line options
Now both pandoc v1 and v2 are supported.

Closes issue #304
2018-11-20 10:21:48 -07:00
Curtis Gedak 729489a77e Improve pandoc compile/export return code handling
See issue #186
2018-10-31 10:31:53 -06:00
Allan Nordhøy 62a8a136c0 Spelling: LaTeX, Pandoc, XeLaTeX, Unicode, HTML. https link
See pull request #310.
2018-02-12 10:52:35 -07:00
Sebastian Rasmussen dde836e0f4 Fix typos that are visible to end-users. 2018-01-29 10:30:41 -07:00
Sebastian Rasmussen dfe88a9681 Fix typos in code comments, invisible to end-users. 2018-01-29 10:30:41 -07:00
Olivier Keshavjee b520b12d7a Adds a tip if pandoc is not installed. #190 2017-11-06 10:05:20 +01:00
Olivier Keshavjee fc1bd40c21 Uses instead of (#186) 2017-11-04 08:26:42 +01:00
Olivier Keshavjee 45a8200d3b Working on: Pandoc output: add more custom settings #173 2017-10-29 14:50:16 +01:00
Olivier Keshavjee f09c961399 Adds: Passes title, subtitle and author to pandoc for document export 2017-10-21 01:01:26 +02:00
Olivier Keshavjee d2762f2819 Merge branch 'feature/QtWebEngine' into develop 2017-10-12 08:47:57 +02:00
Olivier Keshavjee bae8c2f570 Adds OPML format to pandoc exporter 2017-10-12 08:36:10 +02:00
Olivier Keshavjee fb9eb479f8 Reverts a mistake 2017-06-15 16:03:00 +02:00
Olivier Keshavjee 2ff7cf80c6 Adds QtWebEngine support, while keeping QtWebKit support. 2017-06-15 15:24:06 +02:00
Olivier Keshavjee dfed1e7ec9 Fixes Pandoc PDF output error with unicode characters #117 2017-06-15 14:37:55 +02:00
Olivier Keshavjee 9a646cb403 Preview can display images in html relative to project path (temporary solution for #22) 2017-05-08 09:10:33 +02:00
Olivier Keshavjee 0ed3e36952 Adds icon to exporter, and test if latex is available 2016-04-15 14:04:07 +02:00
Olivier Keshavjee b7dec65501 PDF export using pandoc and latex 2016-04-15 13:45:53 +02:00
Olivier Keshavjee f820e5a62b Lots of pandoc formats 2016-04-15 11:58:09 +02:00
Olivier Keshavjee dc82ef6a19 Begin work on pandoc exporter 2016-04-14 14:30:31 +02:00