6

I found two ways to display preview of the markdown files in markdown mode. One is C-c C-c p which requires a parser (currently I use pandoc) to preview using browser. The other is C-c C-c l which display preview using eww in emacs buffer. However, none of them display changes in a "real-time" way.

For the first one, I have to strike C-c C-c p every time after edited. It will open a new time in my browser each time which is very annoying.

If I use C-c C-c l I can use C-c C-c e or simply save file to update changes but still not convenient.

More over, I found some subtle differences between these two commands' outputs. Which one is the real one?

1
  • 1
    I hope this link can help, never tried it.
    – Nsukami _
    Feb 24, 2016 at 12:22

2 Answers 2

1

There are a few solutions: http://wikemacs.org/wiki/Markdown#Live_preview_as_you_type

Flymd

https://github.com/mola-T/flymd This may be the simplest. Install this package with package.el (on MELPA), call the mode with M-x flymd-flyit. It opens a browser window.

Impatient-mode

https://github.com/skeeto/impatient-mode This one needs a bit more setup (explained in wikemacs) but it works out of the box for html live rendering.

0
0

Skewer looks really nice. Not under active dev though.

1
  • 1
    Please elaborate on this answer to make it a self-contained post. We generally discourage link-only answers -- in part to avoid treasure hunts, and in part to avoid link-rot.
    – Dan
    Feb 25, 2016 at 13:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.