GitHub Markdown preview for Zed
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"
]
}
}
}
- Open a Markdown file
- Open the preview split (Cmd+P or Ctrl+P)
- Enjoy :)
You can also trigger the rendering manually:
- Open a Markdown file
- Open the preview split (Cmd+P or Ctrl+P)
- Hit Cmd+. or Ctrl+. and select
GitHub:Markdown:Preview
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 :)
Copyright 2014, André König (andre.koenig@posteo.de)