timonwong / OmniMarkupPreviewer

Sublime Text 2&3 plugin to live preview markup files, supported (not limited to) markup formats are markdown, reStructuredText, WikiCreole and textile.
MIT License
500 stars 74 forks source link

reStructuredText preview does not seem to support syntax highlighting #57

Closed stharding closed 9 years ago

stharding commented 9 years ago

The following reStructuredText results in a non-highlighted code-block

.. code:: javascript

      function test()
      {
        console.log("test");
      }

This is how it renders on my machine (using OmniMarkupPreviewer, Sublime Text 3, OS X, in Chrome): image

However, previewing Markdown does do correct syntax highlighting. The following:

```javascript
function test()
{
  console.log("test");
}


renders as:
![image](https://cloud.githubusercontent.com/assets/451540/3679292/b81b02c6-12a2-11e4-918c-a7d3e11c7572.png)

on my machine.
stharding commented 9 years ago

I can confirm that this is also an issue on Ubuntu 14.04 / Sublime Text 3 / Chrome

stharding commented 9 years ago

That fixed it for me. Thanks!