Skip to content

akoenig/zed-gfm-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Markdown preview for Zed

Installation

Install the package via ZPM.

gh:akoenig/zed-gfm-preview

If you want to use the package as your default markdown preview, change the markdown handler in your user.json:

modes: {
    markdown: {
        handlers: {
            preview: [
                "!Tools:Preview",
                "GitHub:Markdown:Preview"
            ]
        }
    }
}

Usage

  1. Open a Markdown file
  2. Open the preview split (Cmd+P or Ctrl+P)
  3. Enjoy :)

You can also trigger the rendering manually:

  1. Open a Markdown file
  2. Open the preview split (Cmd+P or Ctrl+P)
  3. Hit Cmd+. or Ctrl+. and select GitHub:Markdown:Preview

GitHub API

If you're riding with the default configuration, you're allowed to preview your markdown file 60 times per hour. Not too much, right? With a private OAuth token you can level this limit up to 5.000 renderings per hour.

Go to your settings page and create a new token. Open your Zed configuration project and add this token to your preferences section like:

"preferences": {
    "githubToken": "YOUR_TOKEN",
    ...
}

You will receive a warning message if you have only 10 renderings left :)

Author

Copyright 2014, André König (andre.koenig@posteo.de)

About

GitHub Markdown Preview for Zed

Resources

License

Stars

Watchers

Forks

Packages

No packages published