jrblevin / markdown-mode

Emacs Markdown Mode
http://jblevins.org/projects/markdown-mode/
GNU General Public License v3.0
897 stars 163 forks source link

How can I preview markdown with table and code~~ #177

Closed jaylinwang closed 7 years ago

jaylinwang commented 7 years ago

table

raw txt :

image

preview result:

image

code

raw text: image

preview result: image

how can i have a preview result like that: image

image

cmal commented 7 years ago

I have the same problem. Does it need some plugins/extensions? Such as plugins to show table, do syntax highlighting and show toc? Thanks!

jaylinwang commented 7 years ago

@cmal I fixed it use pandoc , you can try it

cmal commented 7 years ago

@jaylinwang Thanks. So you use pandoc to generate html? And what about theme rendering and syntax highlighting? I build a working version of my .emacs.d this afternoon. here

jaylinwang commented 7 years ago

add the config:

(setq markdown-command "pandoc -s -c {yourstyle.css} -f markdown -t html5 --mathjax --highlight-style pygments --standalone")

and you can see preview result for your want~~

@cmal

cmal commented 7 years ago

@jaylinwang oh, good. Thanks! That's pretty clean.

syohex commented 7 years ago

Sorry late response. Did you resolve this issue by yourself ?

If you still not resolve this issue ?

jaylinwang commented 7 years ago

@syohex thanks for your response.it's fixed 😄

syohex commented 7 years ago

Good.

cmal commented 7 years ago

I think this one also helps. https://github.com/shime/emacs-livedown