LyubomirT/prismblue

HTML not working in markdown preview

Closed this issue · 1 comments

Describe the bug:
Markdown/HTML preview won't display HTML.

Steps to reproduce:
For the purposes of the demonstration I have written this markdown file as an example and named it example.md

<h1> This is an Image of Mount Everest </h1>

<br>

<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/e/e7/Everest_North_Face_toward_Base_Camp_Tibet_Luca_Galuzzi_2006.jpg/1920px-Everest_North_Face_toward_Base_Camp_Tibet_Luca_Galuzzi_2006.jpg" alt="Example GIF" width="500" height="600">

<p style="color:cyan">A mountain is an elevated portion of the Earth's crust, generally with steep sides that show significant exposed bedrock.</p>
  • Open the file in prismblue
  • Save the file if needed
  • Click run
  • Preview MD/HTML

From there a window should pop up previewing the markdown file. From there this is what appears.

image

Expected behavior:


Expected Behavior

System details:

  • Operating system: Windows
  • App version: Source Code

Additional context:

  • I installed prismblue using the git installation instructions found on in the README.md file

Thank you for creating the issue. For now the "Preview MD/HTML" tool detects languages by their file extension. Since your document ends with .md, Prismblue thinks that this is a Markdown file (but the contents are clearly written in HTML) and attempts to render it as Markdown, but only detects plain text (because Markdown is incompatible with most HTML tags). I'm planning to implement syntax-based detection as a configurable option, coming soon in the next release. I'm going to close the issue for now.