3 ms·
In Emacs you could achieve the same thing without node dependency, the markdown mode already supports previewing in browser so you could add two hooks (on 'mark
by FatalBaboon 12y ago
In Emacs you could achieve the same thing without node dependency, the markdown mode already supports previewing in browser so you could add two hooks (on 'markdown-mode-hook and 'after-save-hook) and call 'markdown-preview on the latter.
What does livedown add?
- shime 12y agoWasn't aware of that, thanks. Livedown provides Github styling via [1] and uses socket.io to reload the browser content upon saving. It also serves images, so your rendered Markdown should pretty much look the same as on Github. [1] https://github.com/sindresorhus/github-markdown-css https://github.com/sindresorhus/github-markdown-css
- philsnow 12y agoIf you're using emacs in a native window (not curses/terminal), various modes render e.g. section headings, emphasis, etc right in the buffer you're editing, no need for a preview window. It's not exactly the markdown / wiki output (because you still see e.g. the `+++` at the beginning of header lines) but you can at least see when you've messed up the markdown (because it doesn't render correctly). It's a bit like syntax highlighting now that I think of it. See the screenshot on e.g. http://www.neilvandyke.org/erin-twiki-emacs/ http://www.neilvandyke.org/erin-twiki-emacs/ for what I'm talking about.