tylingsoft / markdown-plus

Markdown editor with extra features.
http://mdp.tylingsoft.com/
2.12k stars 391 forks source link

How to show preview only without tools bar and editor #67

Closed Braraear closed 8 years ago

Braraear commented 8 years ago

If I don't want somebody edit it.

tylerlong commented 8 years ago

If you are a programmer, you are probably interested in this project: https://github.com/tylingsoft/markdown-core This project provides markdown engine to generate HTML for preview. Since you don't need toolbar and editor, this project is more suitable.

Or if you want a quick-and-dirty solution:

screen shot 2016-06-01 at 5 35 08 pm

Or by code:

  1. hide toolbar: https://github.com/tylingsoft/markdown-plus/blob/master/markdown-plus.js#L30
  2. hide editor: https://github.com/tylingsoft/markdown-plus/blob/master/markdown-plus.js#L35
    1. set east panel size to '100%'
Braraear commented 8 years ago

Thanks you, I'm following your upldate