GithubHelp home page GithubHelp logo

markdown-preview's Introduction

Atom and all repositories under Atom will be archived on December 15, 2022. Learn more in our official announcement

Markdown Preview package

macOS Build Status Windows Build Status Dependency Status

Show the rendered HTML markdown to the right of the current editor using ctrl-shift-m.

It is currently enabled for .markdown, .md, .mdown, .mkd, .mkdown, .ron, and .txt files.

markdown-preview

Customize

By default Markdown Preview uses the colors of the active syntax theme. Enable Use GitHub.com style in the package settings to make it look closer to how markdown files get rendered on github.com.

markdown-preview GitHub style

To customize even further, the styling can be overridden in your styles.less file. For example:

.markdown-preview.markdown-preview {
  background-color: #444;
}

markdown-preview's People

Contributors

50wliu avatar andreaspizsa avatar arnaudrinquin avatar as-cii avatar benogle avatar billglover avatar damieng avatar darangi avatar dependabot[bot] avatar gjtorikian avatar izuzak avatar jasonrudolph avatar jbrains avatar jlord avatar kevinnathan avatar kevinsawicki avatar lee-dohm avatar m4b avatar maxbrunsfeld avatar mcolyer avatar mnquintana avatar probablycorey-and-nathan avatar rafeca avatar sadick254 avatar simurai avatar ssonal avatar thomasjo avatar wong2 avatar xapphire13 avatar zcbenz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

markdown-preview's Issues

Allow preview to be zoomed

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.

No preview, opens developer tab

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

Copy & pasting from preview window

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?

Wordcount

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.

Indentation of ordered lists doesn't work correctly

Indentation of ordered lists doesn't work between indentation level 3 and 4, see screenshot and code.

markdown-preview ordered lists


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

Certain selectors are invisible!

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);
}
.```

Screenshot
screenshot 2014-03-03 10 20 51

Selector in question

<span class="entity name type object js firebug">console</span>

Can't install update

[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

Should markdown preview adhere to your theme?

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.

HTML not rendered

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.

Follow editor scroll

Now, when editor scrolls, preview pane does not scroll.
If preview pane follows editor scroll, it will be easy to preview.

Switch focus when displaying preview

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?

Need ability to actually SAVE the generated HTML.

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.

domutils not found?

I cant get markdown preview to work.

screen shot 2013-11-05 at 11 16 50 am

I pull and run this package's tests, everything is ok. But it wont invoke in the editor, and it makes the main atom tests fail for me.

I pulled master, ran script/build, then tried a linked version of markdown-preview. Both had the same effect.

Can not update markdown preview to 0.38.0

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

hr should be rendered with at least 1px top border

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)

Escaped html tags still get ignored

Given a string like > \<hunks\> (\<options\>, \<grid width\>, \<grid offset\> ), markdown-preview still ignores/doesn't show the text between the brackets.

screen shot 2013-09-10 at 4 00 38 pm

"Live" preview

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.

Markdown preview behaves weird when changing files

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.

Export CSS with HTML

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.

Inline code does not line up well in list items.

Using something like:

  • event1 - description
  • event2 - description

looks 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.

Newlines in Github Flavored Markdown

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?

Inline HTML is not rendered correctly

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


Emoji are rendered in code blocks

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.

Empty Lines deleted in fenced code

screen shot 2014-03-31 at 5 37 52 am

Any code with empty lines loses them when the markup is generated. Makes code examples hard to read. I think the issue is that atom.grammar.tokenizeLines() skips empty lines. Would it be better to do individual lines?

Update to Markdown Preview 0.43.0 failed

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

Support for litcoffee

Please add ".litcoffee" and ".coffee.md" (and possibly ".extesion.md") since those files are also basically markdown-compliant.

Thanks!

Add embedded MathJax

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 does not update the change of filename

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

  1. Editing the markdown file with preview is being opened
  2. Rename the file
  3. The main editor is able to detect the change and update the new name
  4. The preview does not change the name

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.