grimmer0125 / markdown-preview-kramdown

An Atom package which lets you preview Kramdown files (a kind of markdown and used by GitHub Pages). It is modified from Markdown Preview. https://atom.io/packages/markdown-preview-kramdown
MIT License
5 stars 0 forks source link

Previewing Markdown Failed #3

Open kleinfelter opened 6 years ago

kleinfelter commented 6 years ago

Whenever I preview a Markdown file, all I see is "Previewing Markdown Failed". I need more detail in order to solve the problem. I'm on Mac. "kramdown --version" reports 1.15.0.

How do I debug this plugin?

grimmer0125 commented 6 years ago

Hi @kleinfelter, this bug should be fixed in the latest version. Sorry for the late reply.

Some ways to debug:

  1. Atom -> View -> Developer -> Toggle Developer tools, to see the console logs.
  2. Uninstall the version installed from the market. Install this package from the source code, follow https://github.com/grimmer0125/markdown-preview-kramdown#development-from-source-code (~/.atom/dev/packages seems to be the old location, ~/.atom/packages may be the official location), so that you can insert any console.log in the code.
  3. Using debugger may be useful (I have not tried it when developing Atom packages). ref: https://discuss.atom.io/t/debugging-my-package/17393/2