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?

Dan
  • 32,584
  • 6
  • 98
  • 168
spacegoing
  • 419
  • 2
  • 9

2 Answers2

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.

Ehvince
  • 1,091
  • 10
  • 14
0

Skewer looks really nice. Not under active dev though.

spacegoing
  • 419
  • 2
  • 9
  • 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 '16 at 13:15