math2001 / MarkdownLivePreview

A Sublime Text 3 plugin to preview your markdown as you type
https://math2001.github.io/MarkdownLivePreview
MIT License
304 stars 37 forks source link

HTML and XML code blocks do not render properly #72

Closed markwdickson closed 4 years ago

markwdickson commented 6 years ago

I was recently trying to preview a document where I have some XML code blocks for SOAP web service calls and found that the Markdown Preview handling of XML and HTML style elements is wonky at best. As you can see in the example image below, some sections only show pieces of the code, while other sections disappear completely. I understand there is likely HTML generation happening for the preview, but perhaps the input needs to get escaped? I even tried wrapping my code block in HTML comment tags, with no change.

image

cortl commented 6 years ago

Looks like it doesn't work with Java either

math2001 commented 4 years ago

It seems to work fine with the version 3.0 :slightly_smiling_face: I'll close this, please reopen if it doesn't for you.