eqot / atom-broadcast

Broadcast contents in Atom to browsers.
https://atom.io/packages/broadcast
MIT License
7 stars 1 forks source link

Code blocks not showing on browser #5

Open madeinjam opened 8 years ago

madeinjam commented 8 years ago

Hi!

First of all, great package, thank you!

I have a problem broadcasting code to the browser, it just does not appear.

Information:

Markdown

https://gist.github.com/jamc/0045e46d279309ef35fe

How does it look on Atom preview

screenshot 2015-11-02 14 34 12

How does it look on browser preview

screenshot 2015-11-02 14 34 54

HTML rendered on browser

<h3 id="docker-cheatsheet">Docker cheatsheet</h3>
<h4 id="run-the-docker">Run the docker</h4>
<atom-text-editor class="editor" gutter-hidden="" data-grammar="source shell" data-encoding="utf8"></atom-text-editor>
<h4 id="attach-to-the-docker-console">Attach to the docker console</h4>
<atom-text-editor class="editor" gutter-hidden="" data-grammar="source shell" data-encoding="utf8"></atom-text-editor>
<h4 id="stop-the-docker-container">Stop the docker container</h4>
<atom-text-editor class="editor" gutter-hidden="" data-grammar="source shell" data-encoding="utf8"></atom-text-editor>
<h4 id="delete-the-docker-container">Delete the docker container</h4>
<atom-text-editor class="editor" gutter-hidden="" data-grammar="source shell" data-encoding="utf8"></atom-text-editor>
<h4 id="delete-the-docker-image">Delete the docker image</h4>
<atom-text-editor class="editor" gutter-hidden="" data-grammar="source shell" data-encoding="utf8"></atom-text-editor></div>

Any clue?

Thanks!

eqot commented 8 years ago

I am really glad to hear that you like this package! :smile: And, thank you very much for pointing it out. I did not know it happens.

I have found its root cause. Code blocks in Atom are represented with shadow DOMs which are not obtained by the current implementation through element.outerHTML. Unfortunately I have not found resolution yet, so please give me more time to fix it somehow.

madeinjam commented 8 years ago

Thanks for your quick answer and the support, no hurries. Please let me know if I can help providing more information :+1:

bsideup commented 7 years ago

FYI still not fixed