atom / markdown-preview Goto Github PK
View Code? Open in Web Editor NEW📝 Markdown preview in Atom
License: MIT License
📝 Markdown preview in Atom
License: MIT License
currently in markdown preview: show
, the preview panel isn't resizeable.
We should rerender the markdown preview when changes are detected to the editor buffer.
Entering three or more dashes creates a horizontal rule <hr>
.
Currently the stylesheet renders this with border: 0 none
, making it invisible. I think this should be:
border: 0;
border-top: 1px solid #ddd;
(#eee is extremely light. #ccc or #ddd are probably best)
It would be great if the preview could auto-update when the contents of the "raw" buffer changes.
When generating markdown preview in some cases (e.g., this file: https://github.com/rosehartman/frog-trap/blob/master/trap_model_manduscript copy.md), none is generated. A preview tab opens, but it is an empty, unstyled buffer. The dev pane at the bottom also opens. Here's the console output:
Window load time: 1109ms /Applications/Atom.app/Contents/Resources/app/src/window-bootstrap.js:18
[Q] Unhandled rejection reasons (should be empty):
Array[0]
/Applications/Atom.app/Contents/Resources/app/node_modules/q/q.js:989
Uncaught TypeError: Object #<Editor> has no method 'renderMarkdown' /Applications/Atom.app/Contents/Resources/app/node_modules/q/q.js:126
Running atom version 0.60.0
Generated the following error message:
[email protected] install /private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/runas
node-gyp rebuild
/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/emissary'
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/emissary']
npm ERR! error rolling back stack: 'Error: ENOTEMPTY, rmdir '/private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/emissary'',
npm ERR! error rolling back errno: -66,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/emissary' }
npm ERR! Error: ENOENT, lstat '/private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/emissary/node_modules/mixto/lib/mixin.js'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/.apmrc" "install" "/Users/Dave/.atom/.node-gyp/.atom/.apm/markdown-preview/0.43.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.18
npm ERR! path /private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/emissary/node_modules/mixto/lib/mixin.js
npm ERR! fstream_path /private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/emissary/node_modules/mixto/lib/mixin.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/emissary/node_modules'
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/emissary/node_modules']
npm ERR! error rolling back stack: 'Error: ENOTEMPTY, rmdir '/private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/emissary/node_modules'',
npm ERR! error rolling back errno: -66,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/emissary/node_modules' }
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls runas
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/.apmrc" "install" "/Users/Dave/.atom/.node-gyp/.atom/.apm/markdown-preview/0.43.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.18
npm ERR! code ELIFECYCLE
npm ERR! Error: ENOENT, lstat '/private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/async/README.md'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/.apmrc" "install" "/Users/Dave/.atom/.node-gyp/.atom/.apm/markdown-preview/0.43.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.18
npm ERR! path /private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/async/README.md
npm ERR! fstream_path /private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/async/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm http GET https://registry.npmjs.org/htmlparser2
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/CSSselect
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/htmlparser2
npm http 304 https://registry.npmjs.org/CSSselect
npm http 304 https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/CSSwhat
npm http GET https://registry.npmjs.org/domutils
npm http GET https://registry.npmjs.org/domhandler
npm http GET https://registry.npmjs.org/domutils
npm http GET https://registry.npmjs.org/domelementtype
npm http GET https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/domhandler
npm http 304 https://registry.npmjs.org/domutils
npm http 304 https://registry.npmjs.org/CSSwhat
npm http 304 https://registry.npmjs.org/domutils
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/domelementtype
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/string_decoder
npm http GET https://registry.npmjs.org/debuglog/0.0.2
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/debuglog/0.0.2
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/63/_l3mpt_55ws5mzctswny42pw0000gn/T/apm-install-dir-11422-2660-175c8kh/npm-debug.log
npm ERR! not ok code 0
Steps to reproduce the error:
Some have tried to preview markdown for files with a .txt
extension and it didn't work. We should show an error message.
Please add ".litcoffee" and ".coffee.md" (and possibly ".extesion.md") since those files are also basically markdown-compliant.
Thanks!
Copying selection of text from preview window pastes all the content in html format to clipboard. Would it be possible to add a preference to select the 'output' format when copying text from preview window and not to include all the content?
It fails on trying to generate the URI for the preview in this code: @buffer.getPath()
@buffer
is undefined. My thought is that this is related to the async file loading, @probablycorey?
When I type the following into an editor:
Here is some *markdown*
<!-- This should be hidden, as it is an html comment -->
<br>This should pushed down
It shows up as the follows in the preview:
Here is some markdown
<!-- This should be hidden, as it is an html comment -->
<br>This should pushed down
Here is how I would expect it to render:
Here is some markdown
This should be pushed down
Haven't investigated if this is due to the font-size
being specified in px
in the stylesheet, but would be great to be able to use ⌘+
and ⌘-
for making the preview fonts, images, etc. larger.
Syntax themes can style the markdown preview using the .markdown-preview
selector. I think when exporting a markdown preview to HTML, the necessary CSS to make the HTML file look the same as in atom should be embedded into the HTML.
This is especially true since one of the great benefits of markdown is that it can be so easily parsed and exported to different styles and formats - atom should make use of that power in my opinion.
Have you considered setting the ctrl-shift-m
keybinding to toggle the markdown preview between being open and being closed? It seems natural that it would do so.
thus when you scroll on the original file, you see where you are in the preview tab
Steps to reproduce the error:
[email protected] install /private/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/apm-install-dir-114127-52228-tvgm2s/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/runas
node-gyp rebuild
npm http GET https://registry.npmjs.org/pathwatcher/0.16.0
npm http GET https://registry.npmjs.org/roaster
npm http GET https://registry.npmjs.org/temp
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/wrench
npm http 200 https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/underscore-plus/-/underscore-plus-1.0.0.tgz
npm http 200 https://registry.npmjs.org/wrench
npm http GET https://registry.npmjs.org/wrench/-/wrench-1.5.7.tgz
npm http 200 https://registry.npmjs.org/fs-plus
npm http 200 https://registry.npmjs.org/roaster
npm http 200 https://registry.npmjs.org/pathwatcher/0.16.0
npm http GET https://registry.npmjs.org/fs-plus/-/fs-plus-2.0.1.tgz
npm http GET https://registry.npmjs.org/roaster/-/roaster-1.0.1.tgz
npm http GET https://registry.npmjs.org/pathwatcher/-/pathwatcher-0.16.0.tgz
npm http 200 https://registry.npmjs.org/temp
npm http GET https://registry.npmjs.org/temp/-/temp-0.6.0.tgz
npm http 200 https://registry.npmjs.org/underscore-plus/-/underscore-plus-1.0.0.tgz
npm http 200 https://registry.npmjs.org/fs-plus/-/fs-plus-2.0.1.tgz
npm http 200 https://registry.npmjs.org/wrench/-/wrench-1.5.7.tgz
npm http 200 https://registry.npmjs.org/pathwatcher/-/pathwatcher-0.16.0.tgz
npm http 200 https://registry.npmjs.org/roaster/-/roaster-1.0.1.tgz
npm http 200 https://registry.npmjs.org/temp/-/temp-0.6.0.tgz
npm http GET https://registry.npmjs.org/marked/0.2.9
npm http GET https://registry.npmjs.org/emoji-images/0.0.2
npm http GET https://registry.npmjs.org/task-lists/0.1.1
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/osenv/0.0.3
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/runas
npm http 304 https://registry.npmjs.org/underscore
npm http 200 https://registry.npmjs.org/task-lists/0.1.1
npm http 200 https://registry.npmjs.org/emoji-images/0.0.2
npm http GET https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz
npm http GET https://registry.npmjs.org/task-lists/-/task-lists-0.1.1.tgz
npm http 200 https://registry.npmjs.org/osenv/0.0.3
npm http GET https://registry.npmjs.org/emoji-images/-/emoji-images-0.0.2.tgz
npm http GET https://registry.npmjs.org/osenv/-/osenv-0.0.3.tgz
npm http 200 https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http 200 https://registry.npmjs.org/marked/0.2.9
npm http 200 https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/rimraf/-/rimraf-2.2.6.tgz
npm http GET https://registry.npmjs.org/marked/-/marked-0.2.9.tgz
npm http 200 https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/rimraf/-/rimraf-2.1.4.tgz
npm http GET https://registry.npmjs.org/async/-/async-0.2.10.tgz
npm http 200 https://registry.npmjs.org/runas
npm http GET https://registry.npmjs.org/runas/-/runas-0.5.4.tgz
npm http 200 https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/bindings/-/bindings-1.1.1.tgz
npm http 200 https://registry.npmjs.org/underscore/-/underscore-1.5.2.tgz
npm http 200 https://registry.npmjs.org/osenv/-/osenv-0.0.3.tgz
npm http 200 https://registry.npmjs.org/task-lists/-/task-lists-0.1.1.tgz
npm http 200 https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/nan/0.8.0
npm http 200 https://registry.npmjs.org/rimraf/-/rimraf-2.1.4.tgz
npm http GET https://registry.npmjs.org/nan/-/nan-0.8.0.tgz
npm http 200 https://registry.npmjs.org/emissary
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http 200 https://registry.npmjs.org/marked/-/marked-0.2.9.tgz
npm http 200 https://registry.npmjs.org/async/-/async-0.2.10.tgz
npm http 200 https://registry.npmjs.org/rimraf/-/rimraf-2.2.6.tgz
npm http 200 https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/emissary/-/emissary-1.0.0.tgz
npm http GET https://registry.npmjs.org/q/-/q-1.0.0.tgz
npm http 200 https://registry.npmjs.org/bindings/-/bindings-1.1.1.tgz
npm http 200 https://registry.npmjs.org/runas/-/runas-0.5.4.tgz
npm http 200 https://registry.npmjs.org/nan/-/nan-0.8.0.tgz
npm http 200 https://registry.npmjs.org/q/-/q-1.0.0.tgz
npm http 200 https://registry.npmjs.org/emissary/-/emissary-1.0.0.tgz
npm http 200 https://registry.npmjs.org/emoji-images/-/emoji-images-0.0.2.tgz
npm http GET https://registry.npmjs.org/graceful-fs
npm http 200 https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz
/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/private/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/apm-install-dir-114127-52228-tvgm2s/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/q'
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/private/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/apm-install-dir-114127-52228-tvgm2s/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/q']
npm ERR! error rolling back stack: 'Error: ENOTEMPTY, rmdir '/private/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/apm-install-dir-114127-52228-tvgm2s/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/q'',
npm ERR! error rolling back errno: -66,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/private/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/apm-install-dir-114127-52228-tvgm2s/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/q' }
npm http 200 https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz
npm ERR! Error: ENOENT, lstat '/private/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/apm-install-dir-114127-52228-tvgm2s/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/q/benchmark/scenarios.js'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/.apmrc" "install" "/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/d-114127-52228-cnritj/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/apm-install-dir-114127-52228-tvgm2s
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.18
npm ERR! path /private/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/apm-install-dir-114127-52228-tvgm2s/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/q/benchmark/scenarios.js
npm ERR! fstream_path /private/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/apm-install-dir-114127-52228-tvgm2s/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/q/benchmark/scenarios.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls runas
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/.apmrc" "install" "/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/d-114127-52228-cnritj/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/apm-install-dir-114127-52228-tvgm2s
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.18
npm ERR! code ELIFECYCLE
npm http 200 https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/property-accessors/-/property-accessors-1.0.0.tgz
npm http 200 https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/mixto/-/mixto-1.0.0.tgz
npm http 200 https://registry.npmjs.org/property-accessors/-/property-accessors-1.0.0.tgz
npm http 200 https://registry.npmjs.org/mixto/-/mixto-1.0.0.tgz
npm http GET https://registry.npmjs.org/cheerio
npm http 200 https://registry.npmjs.org/cheerio
npm http GET https://registry.npmjs.org/cheerio/-/cheerio-0.13.1.tgz
npm http 200 https://registry.npmjs.org/cheerio/-/cheerio-0.13.1.tgz
npm http GET https://registry.npmjs.org/htmlparser2
npm http GET https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/CSSselect
npm http 200 https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/entities/-/entities-0.5.0.tgz
npm http 200 https://registry.npmjs.org/CSSselect
npm http GET https://registry.npmjs.org/CSSselect/-/CSSselect-0.4.1.tgz
npm http 200 https://registry.npmjs.org/htmlparser2
npm http GET https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.4.0.tgz
npm http 200 https://registry.npmjs.org/CSSselect/-/CSSselect-0.4.1.tgz
npm http 200 https://registry.npmjs.org/entities/-/entities-0.5.0.tgz
npm http 200 https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.4.0.tgz
npm http GET https://registry.npmjs.org/CSSwhat
npm http GET https://registry.npmjs.org/domutils
npm http GET https://registry.npmjs.org/domhandler
npm http GET https://registry.npmjs.org/domutils
npm http GET https://registry.npmjs.org/domelementtype
npm http GET https://registry.npmjs.org/readable-stream
npm http 200 https://registry.npmjs.org/CSSwhat
npm http 200 https://registry.npmjs.org/domutils
npm http 200 https://registry.npmjs.org/domutils
npm http 200 https://registry.npmjs.org/domelementtype
npm http GET https://registry.npmjs.org/CSSwhat/-/CSSwhat-0.4.2.tgz
npm http GET https://registry.npmjs.org/domutils/-/domutils-1.3.0.tgz
npm http GET https://registry.npmjs.org/domutils/-/domutils-1.4.0.tgz
npm http GET https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.1.tgz
npm http 200 https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.11.tgz
npm http 200 https://registry.npmjs.org/domhandler
npm http GET https://registry.npmjs.org/domhandler/-/domhandler-2.2.0.tgz
npm http 200 https://registry.npmjs.org/domutils/-/domutils-1.3.0.tgz
npm http 200 https://registry.npmjs.org/CSSwhat/-/CSSwhat-0.4.2.tgz
npm http 200 https://registry.npmjs.org/domutils/-/domutils-1.4.0.tgz
npm http 200 https://registry.npmjs.org/domelementtype/-/domelementtype-1.1.1.tgz
npm http 200 https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.11.tgz
npm http 200 https://registry.npmjs.org/domhandler/-/domhandler-2.2.0.tgz
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/string_decoder
npm http GET https://registry.npmjs.org/debuglog/0.0.2
npm http 200 https://registry.npmjs.org/string_decoder
npm http 200 https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.25-1.tgz
npm http GET https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz
npm http 200 https://registry.npmjs.org/debuglog/0.0.2
npm http GET https://registry.npmjs.org/debuglog/-/debuglog-0.0.2.tgz
npm http 200 https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.25-1.tgz
npm http 200 https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.1.tgz
npm http 200 https://registry.npmjs.org/debuglog/-/debuglog-0.0.2.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/tv/pvt5scf14m93hrs2snp8yw8r0000gn/T/apm-install-dir-114127-52228-tvgm2s/npm-debug.log
npm ERR! not ok code 0
Currently the command just logs a warning, but it could still preview even for unsaved/untitled editors
How to reproduce:
Open markdown-preview on one file, change file edited without closing preview.
Preview shows old file, if i now toggle it it toggles on/off for the new file, but the old file preview is always there/not possible to remove
I have to open the old file again and disable preview to get rid of old preview.
Expected behaviour:
Perhaps either update preview for new file, or close preview altogether when opening a new file. The current behaviour seems awkward.
As far as I can work out the preview does not render HTML
Examples of non-rendered HTML include:
<sup>1</sup>
<a name="anchor"></a>
I haven't done any testing to check if any other HTML is rendered.
The markdown preview Window is not sizable
Especially when being used in a similar setup in Mou, it would be great to see a real-time / "live" preview. It enhances the learning curve for Markdown in a huge way.
Using something like:
event1
- descriptionevent2
- descriptionlooks strange because the baselines look off.
Basically I would expect it to look like the list in this bug report but in the preview the code text is very, very high.
The code baseline lines up with regular text so it is some interaction with ul, li, code, etc.
This is a really great package, by the way. Thanks.
Indentation of ordered lists doesn't work between indentation level 3 and 4, see screenshot and code.
Unordered list:
- Element 1
- Element 1.1
- Element 1.1.1
- Element 1.1.1.1
- Element 1.1.1.1.1
- Element 1.1.1.2
- Element 1.1.2
- Element 1.1.3
- Element 1.2
- Element 1.3
- Element 2
Ordered list:
1. Element 1
1. Element 1.1
1. Element 1.1.1
1. Element 1.1.1.1 not indented
1. Element 1.1.1.1.1
2. Element 1.1.1.2 not indented
2. Element 1.1.2
3. Element 1.1.3
2. Element 1.2
3. Element 1.3
2. Element 2
Right now, it looks like github's website (syntax and all!), no matter the themes you have activated.
Do you think it should adhere to your current theme?
If so, I was thinking I could extract the current styles into a github-markdown-theme package so people could make it look like the website.
Will just add to this list as I come across them.
.entity.name.type
has a color of #ffffb6
Markdown
```javascript
var ret = handler.onResolved(value);
// In the examples I’ve been using here, handler.onResolved is
function(value) {
console.log("Got a value:", value);
}
.```
Selector in question
<span class="entity name type object js firebug">console</span>
I've found myself accidentally closing the .md file instead of the preview window because the focus stays on the tab with the .md file.
Maybe a setting for this? Or making it so hitting shift+ctrl+m
again will close the preview?
I originally had preview already open. I closed it, elected to install the update, and an error again. I restarted Atom, and still the same error.
I'm running atom version 0.60.0 on Mavericks 10.9.2
Here's the log:
> [email protected] install /private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/runas
> node-gyp rebuild
npm http GET https://registry.npmjs.org/pathwatcher/0.16.0
npm http GET https://registry.npmjs.org/roaster
npm http GET https://registry.npmjs.org/temp
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/wrench
npm http GET https://registry.npmjs.org/fs-plus
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/temp
npm http 304 https://registry.npmjs.org/pathwatcher/0.16.0
npm http 304 https://registry.npmjs.org/wrench
npm http 304 https://registry.npmjs.org/roaster
npm http 304 https://registry.npmjs.org/fs-plus
npm http GET https://registry.npmjs.org/task-lists/0.1.1
npm http GET https://registry.npmjs.org/marked/0.2.9
npm http GET https://registry.npmjs.org/emoji-images/0.0.2
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mkdirp
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/osenv/0.0.3
npm http 304 https://registry.npmjs.org/mkdirp
npm http 304 https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/runas
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan/0.8.0
npm http 304 https://registry.npmjs.org/async
npm http 200 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/async
npm http 304 https://registry.npmjs.org/marked/0.2.9
npm http 304 https://registry.npmjs.org/emoji-images/0.0.2
npm http 304 https://registry.npmjs.org/rimraf
npm http 304 https://registry.npmjs.org/osenv/0.0.3
npm http 304 https://registry.npmjs.org/task-lists/0.1.1
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/runas
npm http 304 https://registry.npmjs.org/nan/0.8.0
npm http GET https://registry.npmjs.org/graceful-fs
npm http GET https://registry.npmjs.org/cheerio
/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/graceful-fs
npm http 304 https://registry.npmjs.org/cheerio
npm ERR! Error: ENOENT, lstat '/private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/async/lib/async.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Darwin 13.0.0
npm ERR! command "/Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/.apmrc" "install" "/Users/lynnroot/.atom/.node-gyp/.atom/.apm/markdown-preview/0.38.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.18
npm ERR! path /private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/async/lib/async.js
npm ERR! fstream_path /private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk/node_modules/markdown-preview/node_modules/pathwatcher/node_modules/async/lib/async.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk/node_modules/markdown-preview/node_modules/temp/node_modules/rimraf'
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk/node_modules/markdown-preview/node_modules/temp/node_modules/rimraf']
npm ERR! error rolling back stack: 'Error: ENOTEMPTY, rmdir \'/private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk/node_modules/markdown-preview/node_modules/temp/node_modules/rimraf\'',
npm ERR! error rolling back errno: -66,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk/node_modules/markdown-preview/node_modules/temp/node_modules/rimraf' }
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the runas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls runas
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.0.0
npm ERR! command "/Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/.apmrc" "install" "/Users/lynnroot/.atom/.node-gyp/.atom/.apm/markdown-preview/0.38.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.18
npm ERR! code ELIFECYCLE
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/htmlparser2
npm http GET https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/CSSselect
npm ERR! Error: ENOENT, lstat '/private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk/node_modules/markdown-preview/node_modules/roaster/node_modules/emoji-images/json/nature.json'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! System Darwin 13.0.0
npm ERR! command "/Applications/Atom.app/Contents/Frameworks/Atom Helper.app/Contents/MacOS/Atom Helper" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/.apmrc" "install" "/Users/lynnroot/.atom/.node-gyp/.atom/.apm/markdown-preview/0.38.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk
npm ERR! node -v v0.11.10
npm ERR! npm -v 1.3.18
npm ERR! path /private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk/node_modules/markdown-preview/node_modules/roaster/node_modules/emoji-images/json/nature.json
npm ERR! fstream_path /private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk/node_modules/markdown-preview/node_modules/roaster/node_modules/emoji-images/json/nature.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! fstream_stack /Applications/Atom.app/Contents/Resources/app/node_modules/atom-package-manager/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:97:15)
npm http 304 https://registry.npmjs.org/htmlparser2
npm http 304 https://registry.npmjs.org/CSSselect
npm http 304 https://registry.npmjs.org/entities
npm http GET https://registry.npmjs.org/CSSwhat
npm http GET https://registry.npmjs.org/domutils
npm http GET https://registry.npmjs.org/domutils
npm http GET https://registry.npmjs.org/domelementtype
npm http GET https://registry.npmjs.org/domhandler
npm http GET https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/domutils
npm http 304 https://registry.npmjs.org/domutils
npm http 304 https://registry.npmjs.org/CSSwhat
npm http 304 https://registry.npmjs.org/domhandler
npm http 304 https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/domelementtype
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/debuglog/0.0.2
npm http GET https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/debuglog/0.0.2
npm http 304 https://registry.npmjs.org/string_decoder
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/n8/hw4hbjc16_z2j3vypkb7nc8h0000gn/T/apm-install-dir-114127-13477-1sce0lk/npm-debug.log
npm ERR! not ok code 0
... also triple-dashed ones.
I added a comment to an existing issue for marked, the underlying md parser - marked seems active but has huge pull request and issue backlog.
Emoji are currently being rendered within code blocks.
Example:
`:smile:`
or:
```
:smile:
```
In these examples, :smile:
will be replaced with the emoji in the preview window when it shouldn't be.
Now, when editor scrolls, preview pane does not scroll.
If preview pane follows editor scroll, it will be easy to preview.
markdown-preview:show is great, but there seems to be no way to actually save the HTML it generates... just to view it in the preview pane (which is highly useful, but only half the story).
A markdown-preview:SaveAsHTML or something would be nice.
I tried clicking in the preview tab to put the focus on it, then going File > Save As. It doesn't work; literally nothing happens. I didn't get a save dialogue at all.
Version is 0.83.0.
The pane doesn't open and no errors are visible in the devtools.
Many markdown editors display a word count gleaned from the render. This functionality would be useful and could be appropriately placed in the status bar in Atom.
The main editor is able to detect and update the change of filename, however the Markdown preview is not. Here are steps to reproduce the issue
The syntax highlighting fails when the wrapping operators are on separate lines. Tested for both bold and italics.
_this wont be
syntax highlighted_
\
=> </code>
It should be able to embed MathJax within markdown. Adding this snippet on top of the document works but native support would be awesome.
<style TYPE="text/css">
code.has-jax {font: inherit; font-size: 100%; background: inherit; border: inherit;}
</style>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'] // removed 'code' entry
}
});
MathJax.Hub.Queue(function() {
var all = MathJax.Hub.getAllJax(), i;
for(i = 0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
</script>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
Markdown preview in Atom does not match markdown preview on Github. Specifically, newlines are handled like normal markdown. Could a checkbox be added to preferences to toggle between classic and github markdown styles?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.