oni icon indicating copy to clipboard operation
oni copied to clipboard

A suggestion of markdown preview

Open TillLindemann opened this issue 8 years ago • 4 comments

as we all know,vim-markdown-preview plugin will open a chrome browser to preview the current editing md file,but in oni,it should be better with embedded browser,but I don't know how to do that,can you support that?Or alternatively,you can write your own markdown-preview plugin,specially designed for oni.

and if embedded browser supports proxy,it would be great!

TillLindemann avatar Jun 06 '18 19:06 TillLindemann

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar Jun 06 '18 19:06 oni-bot

@TillLindemann we currently do have a markdown plugin in Oni which @TalAmuyal built (did an awesome job), tbh I don't use it all that often (because I should be writing more docs but don't 😞) but I think if in a markdown file you should be able to find the option to toggle it in the quickopen menu, lemme know if it doesn't show up I don't know any of the commands of the top of my head maybe @CrossR? I think we may also be missing docs for it

akinsho avatar Jun 06 '18 20:06 akinsho

Its technically still in the experimental phase, so you need to enable it explicitly with "experimental.markdownPreview.enabled": true, in your Oni config.

Then if you reload you should get options for Toggle/Open/Close markdown preview when inside a markdown file. You'll end up with something like this:

image

There is a few small bugs that I'm addressing in #2282. I'm also looking into getting syntax highlighting in code blocks hooked up, as well as inline latex.

CrossR avatar Jun 06 '18 20:06 CrossR

@CrossR OK,I enabled the feature,everything works fine,this issue can be closed,thank you so much @CrossR @Akin909

TillLindemann avatar Jun 07 '18 04:06 TillLindemann