Default action for .md files


I consider the preview of the markdown to be the essential part for new users opening a markdown file, and not the markdown editor. The current default is to open the markdown editor though.

I’m thinking that if one knows that one wants to edit, one has probably committed a bit to the action and wants a preview open anyhow along side working with it. Also, if you are working with the file that you know you want to edit, you are probably having more experience and will be able to find it, perhaps you even realized that should be edited due to viewing the preview first. Also, if you are a new users, you will be afraid of the file if opened in editor view but not afraid of it if opened in the preview view.

So, what do you think? Does it make sense to change the default to be in preview mode?



If it is one more click on a button to edit it, sure – also in line with GitHub then.



Interesting point, so basically you’re saying

“If I don’t know what a markdown file is and I double-click an .md file, then if I see the raw text I’ll be confused, if I see the rendered text then I’ll be less-confused”


“If I know how to write markdown, if I see rendered text I will not be confused, and I’ll know to find the ‘edit’ button if I want to edit the text?”

1 Like


Another thought - I quite like the hackmd approach of having a few visual buttons as cues for quickly switching between viewing / writing:

perhaps we could use something similar for the markdown editor in JupyterLab, since this is a familiar pattern for people already.



@choldgraf excellent summary - yes! I like your idea to consider making a split view possible as well.



We could even go one step further: only display a WYSIWYG editor for markdown files (and markdown cells).

With an option to switch back to the current “hacker mode” for writing formatted by writing markdown by hand :slight_smile:



WYSIWYG with markdown would be awesome…looks like jupyterlab can use react as well, so perhaps draft.js could be straightforward as a plugin (

There was another project that did full WYSIWYG editing ( but it output HTML instead of markdown under-the-hood

1 Like