Commit graph

61 commits

Author SHA1 Message Date
TheJackiMonster
f274cd489f
Use text mode writing files
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-12 16:22:46 +01:00
TheJackiMonster
98d6eb4975
Remove usage of hardcoded path separators
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-12 15:53:37 +01:00
Christian Freitag
e267699667 - Adjusted open calls to use \n as newline for all platforms instead of guessing it 2023-08-07 13:09:55 +02:00
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
f6fa3e8375 Do not try to export after dismissing the dialog
I happened to notice the UI briefly locking up when testing my previous
changes on some of the Pandoc exporters. While the bigger mess I found
along the way is more than a little fix can handle, this stopgap measure
will at least stop us from running pandoc when it isn't needed.
2019-09-07 15:59:45 -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
Allan Nordhøy
761be5784a Spelling: Manuscript, could not, process, … No content (#588)
* Spelling: Plaintext, Manuscript, could not, process, … No content

* Reverted to "plain text"
2019-06-06 11:55:24 -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
c7605b5819 Don't crash if a typo is made in the exporter's regular expression.
When a regexp error is thrown, cancel the export and show an info dialog
with the error message to the user. Fixes #488
2019-02-15 12:49:22 -07: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
f75bc69dd7 Fix spelling mistake "chose" should be "choose"
Mentioned in issue #470
2019-02-07 12:34:57 -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
Lech Baczynski
3fdef2b800 Fix for compile/export crash (error when saving in cp1250) #331
See issue #331 and pull request #340
2018-08-21 10:55: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
c2dcbf56a0 Adds new markdown highlighter and many little tweaks 2017-11-27 21:35:32 +01:00
Olivier Keshavjee
64994cde3a Adds: unit tests and starts refactoring models 2017-11-23 11:03:14 +01:00
Olivier Keshavjee
9be2edeee7 Checkpoint: adding new markdown highlighter 2017-11-22 13:43:40 +01:00
Olivier Keshavjee
bc0d6f5760 Creates base classes 2017-11-15 20:34:05 +01:00
Olivier Keshavjee
ccf33b3ccf Adds: import from many formats using pandoc. #200 2017-11-07 20:30:39 +01: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
4ddb95ff67 Removes MultiMarkDown exporter. See #186. 2017-11-04 08:01:45 +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
588b2c827b Updates MultiMarkdown command name 2017-03-24 10:26:20 +01: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
26c42a56f1 Corrects things in manuskript exporter 2016-04-14 14:30:42 +02:00
Olivier Keshavjee
dc82ef6a19 Begin work on pandoc exporter 2016-04-14 14:30:31 +02:00
Olivier Keshavjee
1a2a80a41a Custom command for exporters 2016-04-12 09:15:01 +02:00
Olivier Keshavjee
3bddbf4c64 Adds cute icons 2016-04-08 12:48:19 +02:00
Olivier Keshavjee
9c2c15e352 Exporter can now.. export. Yay! 2016-04-08 12:02:50 +02:00