marktext: can not import html with pandoc installed

Description

  • Can you reproduce the issue?

Steps to reproduce

  1. [First step] drag html file into the window

Expected behavior:

successfully open html file

Actual behavior:

can not open html file 截屏2019-09-27下午9 07 24 截屏2019-09-27下午9 08 16

Link to an example: [optional]

Versions

  • Mark Text: v0.15.0
  • Operating system: 10.15 Beta(19A573a)

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 26 (11 by maintainers)

Most upvoted comments

I have found a solution:

  1. When launching MarkText from the command line using /Applications/MarkText.app/Contents/MacOS/MarkText, it doesn’t throw any errors. However, when starting it directly from Finder or using cmd+space, it gives an error indicating that pandoc cannot be found.
  2. Launch MarkText from Joplin using the --debug flag and open the developer tools by selecting “View-Show Developer Tools”. In the console, enter process.env.PATH. It seems that only the following directories are present in the PATH: /usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin.
  3. Create the directory mkdir -p /Library/Tex/texbin. Then move the pandoc executable to this directory. This should resolve the issue.

You don’t actually need to install Joplin. I just wanted to clarify that when launching MarkText from Finder, it only searches for pandoc in the directories /usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin. This behavior might be a bug that needs to be addressed.

version: Mac m1 pro 13.3.1 (a) (22E772610a) MarkText v0.17.1

Hi everybody! Thank you for developing MarkText. I had the same issue: MarkText on MacOs didn’t recognise a valid pandoc installation. I noticed that MarkText recognises pandoc if I launch it from the command line, i.e., if MarkText is installed in the /Applications folder: /Applications/Mark\ Text.app/Contents/MacOS/Mark\ Text Hope it helps. F