as described above my WebStorm IDE doesn't show up the preview tab for markdown files anymore. This happens with any .md file. A current example, as provided below might look like this.
Ante Modrić unless this has changed, they use JavaFX for rendering markdown, as discussed above. And Oracle JDK hasn't included JavaFX since 11. As described above, changing to the JetBrains JDK for running the IDE should solve this.
I also had the version of the issue described by @yasin-mesut
Specifically what happened was that I tried to create a file, "MyDumbFile" but accidentally ommitting the ".md" extension when I had named the new file. I then renamed that file to be "MyDumbFile.md". Subsequently, it kept opening as a simple text file. It turned out that that steps I took had inadvertently added "MyDumbFile.md" to the list of patterns for text files, with took priority over the "*.md" pattern for markdowns.
As yasin said, going into File | Settings | File Types | Text files and removing the offending line fixed everything, so really I'm just posting to add the information on how to not add a new file :/
Same issue. Re-enabling works, but eventually stops.
IntelliJ IDEA 2021.1.3 (Ultimate Edition) Build #IU-211.7628.21, built on June 29, 2021
Runtime version: 11.0.11+9-b1341.60 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 11.4 GC: G1 Young Generation, G1 Old Generation Memory: 2048M Cores: 16
I never knew this plugin had a preview feature and I have been using Android Studio for the last maybe 2 years. I suppose it never worked. I had it installed on two computers, both with Windows 10. I had version 4.1 and then 4.2 installed new on a fresh new Windows.
Never saw any preview tab or button. I tried switching JDKs and JREs and nothing worked. No errors in the logs either. Tried all these configs
Version 4.1
IDE: Android Studio (build #AI-201.8743.12.41.7199119, 11 Mar 2021 01:02) OS: Windows 10 (10.0, amd64) JRE: 1.8.0_242-release-1644-b01 (JetBrains s.r.o) JVM: 25.242-b01 (OpenJDK 64-Bit Server VM)
Version 4.2.2
Android Studio 4.2.2 Build #AI-202.7660.26.42.7486908 JDK: 1.8.0_302; VM: OpenJDK 64-Bit Server VM; Vendor: BellSoft OS: Windows 10
Android Studio (build #AI-202.7660.26.42.7486908, 24 Jun 2021 02:31) OS: Windows 10 (10.0, amd64) JRE: 11.0.8+10-b944.6842174 (N/A) JVM: 11.0.8+10-b944.6842174 (OpenJDK 64-Bit Server VM)
As per Manoj Reddy, I found making a change to the file triggers a preview load (then undoing the change). However, I also find that switching between modes "Editor only" and "Editor and Preview" will load the preview. In my set up, these buttons are at the top right, as per pic. Still a workaround as opposed to a fix.
This answer was pretty right, however, not totally complete in my case.
Make sure Markdown files or README.md are not listed in "File types auto-detected by file content". You can see the screenshot linked to this comment. Don't forget to restart IDE after operation.
I have same issue. I'm using IDEA 2020.3.1 on Windows 10-
I tried disabling Markdown, restarting IDE and enabling it again, but it didn't help.
Ante Modrić and you're using the built-in Jetbrains JDK, or are you using OpenJDK?
Michael Faith I'm using Oracle JDK, JAVA SE 15
Ante Modrić unless this has changed, they use JavaFX for rendering markdown, as discussed above. And Oracle JDK hasn't included JavaFX since 11. As described above, changing to the JetBrains JDK for running the IDE should solve this.
Installing Markdown Navigator Enhanced helps.
I faced the same issue on Arch. Installing Markdown Navigator Enhanced and switching to liberica-jdk-11-full-bin helped.
I also had the version of the issue described by @yasin-mesut
Specifically what happened was that I tried to create a file, "MyDumbFile" but accidentally ommitting the ".md" extension when I had named the new file. I then renamed that file to be "MyDumbFile.md". Subsequently, it kept opening as a simple text file. It turned out that that steps I took had inadvertently added "MyDumbFile.md" to the list of patterns for text files, with took priority over the "*.md" pattern for markdowns.
As yasin said, going into File | Settings | File Types | Text files and removing the offending line fixed everything, so really I'm just posting to add the information on how to not add a new file :/
I didn't test it myself so yet, but this thread seems like it could have the answer:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360001515959-Markdown-Support-plugin-preview-not-working-in-Linux
tldr: The JDK used to run pycharm on your PC might not support javafx by default.
Same issue. Re-enabling works, but eventually stops.
I never knew this plugin had a preview feature and I have been using Android Studio for the last maybe 2 years. I suppose it never worked. I had it installed on two computers, both with Windows 10. I had version 4.1 and then 4.2 installed new on a fresh new Windows.
Never saw any preview tab or button. I tried switching JDKs and JREs and nothing worked. No errors in the logs either. Tried all these configs
Version 4.1
Version 4.2.2
As per Manoj Reddy, I found making a change to the file triggers a preview load (then undoing the change). However, I also find that switching between modes "Editor only" and "Editor and Preview" will load the preview. In my set up, these buttons are at the top right, as per pic. Still a workaround as opposed to a fix.
This answer was pretty right, however, not totally complete in my case.
Make sure Markdown files or README.md are not listed in "File types auto-detected by file content". You can see the screenshot linked to this comment. Don't forget to restart IDE after operation.
In my case the culprit was unescaped special characters specifically [ and ]. Escaping them caused the preview to render correctly.