Markdown-preview not working in emacs markdown mode

Markdown preview command not working.

I installed markdown-mode.el on emacs using package-install. Then I created a test.md file as a trial version. The hi-lighting syntax seems to work great in text.

When I used the command "Cc Cc p" to show the preview, I got the following error in the backtrace buffer . Even if I saved the test.md file in the current directory, it still said "No such file or directory". The file is located in "~ / workspace / daily_log / test.md."

I tried "Mx markdown-preview" instead of the keyboard shortcut. But that doesn't work either.

Could I be wrong about using markdown mode? Any help would be greatly appreciated. Thanks in advance.

Error message in the backtrace buffer

Debugger entered--Lisp error: (file-error "Searching for program" "No such file or directory" "bash.exe")
call-process-region(1 36 "bash.exe" "/tmp/emacsAxnXZ9" #<buffer *markdown-output*> nil "-c" "markdown")
shell-command-on-region(1 36 "markdown" "*markdown-output*")
markdown("*markdown-output*")
markdown-preview()
call-interactively(markdown-preview nil nil)
command-execute(markdown-preview)

      

my Wednesday

OS: Ubuntu 14.10

emacs: 24.4.1 (x86_64-unknown-linux-gnu, GTK + Version 3.12.2)

markdown-mode: markdown-mode-20140914.1012 /

+3


source to share


1 answer


If you check the backtrace, you will see that it has nothing to do with your Markdown file.

markdown-preview

need an external command markdown

that can generate HTML. It looks like whatever Markdown processor you are using is trying to call bash.exe

(not bash

) when converting your file.



  • You may have installed some Windows oriented Markdown converter.
  • You may have configured markdown-command

    , directly or indirectly, to invoke bash.exe

    .

Since you're on Ubuntu, a simple one apt-get install markdown

should give you decent Markdown that works with the feature markdown-mode

markdown-preview

. After installing markdown

at the system level, make sure Emacs is markdown-command

set to markdown

(the default).

+5


source







All Articles