Skip to content
This repository has been archived by the owner on Dec 20, 2017. It is now read-only.

Preview tab unavailable in scratch files #234

Open
wwboynton opened this issue May 14, 2015 · 3 comments
Open

Preview tab unavailable in scratch files #234

wwboynton opened this issue May 14, 2015 · 3 comments
Labels

Comments

@wwboynton
Copy link

In rubymine 7.1.1, preview works as intended in .md files in the project filetree, but when I open a markdown scratch file it fails to show a preview tab.

  1. Tools> New Scratch File
  2. 'Markdown'
  3. No preview :(
@CJ-Wright
Copy link

I am having this problem too.

@vsch
Copy link

vsch commented Nov 6, 2015

The issue is with the file type returned by scratch files. Regular files will have the markdown file type. Scratch files do not. To get the file type of the scratch file you need to request this information from the scratch file service. So idea-markdown does not recognize scratch files as markdown.

You can see the code I use in idea-multimarkdown plugin, which is an overhauled and enhanced version of idea-markdown. The code to handle this can be seen here: https://github.com/vsch/idea-multimarkdown/blob/master/src/main/java/com/vladsch/idea/multimarkdown/editor/MultiMarkdownPreviewEditorProvider.java#L58-L61

@nicoulaj nicoulaj added the Bug label May 22, 2016
@nicoulaj
Copy link
Owner

Notice: This plugin is no more maintained and it has been removed from Jetbrains plugins repository. There is a Markdown plugin officially supported by Jetbrains.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants