atom-html-preview icon indicating copy to clipboard operation
atom-html-preview copied to clipboard

HTML preview don't work with this code(and my other HTML file), why?

Open MajesticMight opened this issue 9 years ago • 14 comments

This code won't preview in atom when I press (ctrl-shift-h) the preview panel will appear but with no content in it just a blank page. `

Project

The world is a dangerous place to live.

`

I'm running Mac OS El Capitan 11.1 with atom (1.1.0) and atom-html-preview (0.1.12). Any help will be greatly appreciate.

MajesticMight avatar Oct 30 '15 19:10 MajesticMight

atom-html-preview is broken in my system since last update too.

Only a white page is showed.

Running on Arch Linux x64, Atom 1.1.0, atom-html-preview 0.1.13.

WhizzoCode avatar Nov 07 '15 11:11 WhizzoCode

same to, "loading index.html preview..." and only. Running OS X 10.10.5, Atom 1.1.0, atom-html-preview 0.1.13.

0xAVX avatar Nov 07 '15 12:11 0xAVX

Getting the same error as @whizzo, only a white page showing for me.

Running on Ubuntu 14.04.3 LTS, Atom 1.1.0, atom-html-preview 0.1.13

MarkOSullivan94 avatar Nov 10 '15 16:11 MarkOSullivan94

same as @Skullcruncher (white page with "loading HTML Preview....") message

lesion avatar Nov 12 '15 17:11 lesion

Same for me: white page and "Loading HTML Preview". Running OS X 10.11.1, Atom 1.2.0, atom-html-preview 0.1.13.

ss-abramchuk avatar Nov 13 '15 07:11 ss-abramchuk

Just installed Atom 1.2.1, bug continues

WhizzoCode avatar Nov 14 '15 23:11 WhizzoCode

same as @MarkOSullivan94 (white page)

inthesunset avatar Nov 22 '15 20:11 inthesunset

Same here :( Any updates? Or has someone a workaround?

ghost avatar Nov 27 '15 20:11 ghost

same here :(

hellfish2 avatar Feb 02 '16 16:02 hellfish2

To solve this problem, open "atom-html-preview-view.coffee" and modify line 98 to outPath = path.resolve os.tmpdir() + "/" + @editor.getTitle() then restart Atom. If it doesn't work, try to add this @html $$$ -> @h2 'Hello' after line 98 and restart again. It works fine both on Mac OS X and Elementary OS.

Richard74Huang avatar Feb 18 '16 18:02 Richard74Huang

@Richard74Huang i use your solution... it's works... adding the / to the get.title ;) thanks ... Works on Debian Jessie.

hellfish2 avatar Feb 27 '16 11:02 hellfish2

Where do I find this line? I am new to this..

ArchDill avatar Nov 15 '16 05:11 ArchDill

Same for me: white page Running Ubuntu 14.04.5 LTS 64-bit, Atom 1.12.5, atom-html-preview 0.1.22.

KublaikhanGeek avatar Nov 26 '16 08:11 KublaikhanGeek

Initially got an white page.

Solved by restarting/reloading Atom ctrl-shift-P, search for "Window: Reload" (debian, atom 1.14.4, atom-html-preview 0.2.5).

mosbth avatar Jun 05 '18 11:06 mosbth