You can preview markdown files as seen on GitHub!
You need Ruby
and bundler
gem installed.
Also, for rst
file support, you need python and docutils
package. Please
install python
from brew
brew install python # this will install pyton to /usr/local/bin/
# this path will be added to $PATH
pip install docutils
cd "~/Library/Application Support/TextMate/Bundles/"
git clone https://github.com/vigo/textmate1-github-gfm-preview.git textmate1-github-gfm-preview.tmbundle
cd textmate1-github-gfm-preview.tmbundle/
bundle install --path=vendor/bundle
Now you can hit kntrl + alt + cmd + p
```ruby
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
```
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
| First Header | Second Header |
| ------------- | ------------- |
| Content Cell | Content Cell |
| Content Cell | Content Cell |
Output:
First Header | Second Header |
---|---|
Content Cell | Content Cell |
Content Cell | Content Cell |
| Name | Description |
| ------------- | --------------------------- |
| Help | ~~Display the~~ help window.|
| Close | _Closes_ a window |
Output:
Name | Description |
---|---|
Help | |
Close | Closes a window |
| Left-Aligned | Center Aligned | Right Aligned |
| :------------ |:---------------:| -------------:|
| col 3 is | some wordy text | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
Output:
Left-Aligned | Center Aligned | Right Aligned |
---|---|---|
col 3 is | some wordy text | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
Vertical scroller (position matcher) is not working 100% as expected.
2016-01-15
- fixed: Vertical position matcher support
2016-01-14
- added: Syntax hightlighting support
2016-01-12
- added: Vertical position matcher support
2016-01-09
- changed: Right now, this is an individual command! Quit using Webpreview feature of TextMate1.
2015-11-25
- Added:
.rst
file support! - Removed: Buggy
scroll_to
thing. Will work on it later
2015-11-19
- First commit!
- Uğur "vigo" Özyılmazel - Creator, maintainer
This project is licensed under MIT.
If you are still using TextMate1 like me, please do not hesitate to contribute this mini bundle :)
fork
(https://github.com/vigo/textmate1-github-gfm-preview/fork)- Create your
branch
(git checkout -b my-features
) commit
yours (git commit -am 'added killer options'
)push
yourbranch
(git push origin my-features
)- Than create a new Pull Request!