lsegal / atom-rst-preview

Open a rendered version of the ReStructuredText in the current editor with `ctrl-shift-r`.
Other
22 stars 80 forks source link

Live preview not working Atom 1.0.11 #33

Open lionelvillard opened 8 years ago

lionelvillard commented 8 years ago

Hi,

the live preview does not work on atom 1.0.11, on OSX. When pressing control+shift r nothing is happening, no error, just really nothing.

lionelvillard commented 8 years ago

After some investigation, I found the problematic lines of code:

grammars = atom.config.get('rst-preview.grammars') ? []
return unless editor.getGrammar().scopeName in grammars

in my case, scopeName is "text.restructuredtext source.gfm.restructuredtext". When commenting out these two lines of code, the live preview works.

austinkelleher commented 8 years ago

+1

SINeWang commented 8 years ago

@lionelvillard +1, commenting out these two lines of code, the live preview works.

SINeWang commented 8 years ago

my atom version is 1.0.19

ghost commented 8 years ago

Same issue & same solution worked for me on Atom 1.0.11.

astorfi commented 7 years ago

@lionelvillard Thanks for your answer ... I have the same problem ... Would you please provide more details here? Thanks