SublimeText-Markdown / MarkdownEditing

Powerful Markdown package for Sublime Text with better syntax understanding and good color schemes.
MIT License
3.19k stars 647 forks source link

Auto-Preview mode #424

Closed dessalines closed 7 years ago

dessalines commented 7 years ago

It would be really nice to have an auto-preview mode for links, bolds, and italics. Basically it just shows what it would look like, until you click the text, upon which it expands the markdown(IE the italics, bold, or link).

This is the killer feature that programs like Typora have that makes it the best markdown editor. Its basically a WYSIWYG editor, until you click the word or phrase that contains the formatting.

felixhao28 commented 7 years ago

It can be easily achieved with some other plugins:

  1. Markdown Preview (https://packagecontrol.io/packages/Markdown%20Preview)
  2. Livereload (https://packagecontrol.io/packages/LiveReload)

Install them if you haven't. Then

  1. Open Palette
  2. LiveReload: Enable/Disable Plugins
  3. Enable Simple Reload.

Now open palette and choose "Preview in Broswer" and you will get a WYSIWYG editor.

felixhao28 commented 7 years ago

Anyway I think it is good to include that in the readme. Thanks for bringing it up.

dessalines commented 7 years ago

I knew about markdownpreview, but its not a WYSIYWG editor. It's an uneditable preview of your content in a browser window. Typora is an in place WYSIWYG editor.

felixhao28 commented 7 years ago

With the combination of LiveReload it is.

felixhao28 commented 7 years ago

Oh I see what you mean. Well, I don't think sublime supports that.

ttscoff commented 7 years ago

This just isn't possible in Sublime. Live preview is the closest you'll get. If you're on a Mac, I do suggest checking out Marked 2, for which there's also a Sublime plugin/build system: http://marked2app.com

(full disclosure, that's my app)

-Brett

On 16 Mar 2017, at 13:51, Dessalines wrote:

I knew about markdownpreview, but its not a WYSIYWG editor. It's an uneditable preview of your content in a browser window. Typora is an in place WYSIWYG editor.

-- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/SublimeText-Markdown/MarkdownEditing/issues/424#issuecomment-287156239

marcus-at-localhost commented 7 years ago

Here is a new way of Markdown preview directly in Sublime Text: https://packagecontrol.io/packages/MarkdownLivePreview Without having any insight/knowledge about the code, it looks like it could be possible to have something like inline edit (I don't think so, but who knows). This plugin renders Markdown to a its own syntax, thus it should be possible to make this view editable.

the preview view (the view on the right) is a specific syntax (called — sorry for the originality — MarkdownLivePreviewSyntax)

felixhao28 commented 7 years ago

Here is a new way of Markdown preview directly in Sublime Text:

Yeah I tried that one but somehow ST hanged and became unresponsive. So I didn't put that into recommendation. Since you can get it working so maybe it's just me.

marcus-at-localhost commented 7 years ago

@felixhao28 It's not perfect and large documents do indeed hang/not render. Interesting concept though.