Get that restaurant github flavor at home in your editor.

Uses github's own redcarpet library to provide accurate markdown previews in your local editor. This screenshot shows Marked using docter as the markdown processor.
Redcarpet 2nokigiri and albino dependenciesFenced codeblocks
var awesome = new BadassClass (param) {
return "string"
}
Strikethru support
Syntax highlighting via pygments
require 'redcarpet'
def markdown(text)
options = [:fenced_code,:generate_toc,:hard_wrap,:no_intraemphasis,:strikethrough,:gh_blockcode,:autolink,:xhtml,:tables]
html = Redcarpet.new(text, *options).to_html
syntax_highlighter(html)
end
table support
| First Header | Second Header |
| Content Cell | Content Cell |
| Content Cell | Content Cell |
I have future plans for this in a node project. And because it's my party.
Lots. Ungodly heaps of requirements.
Various gems
$ gem install redcarpet pygments.rb
cd to the repo[sudo] npm -g installThis will install the package into your global node_modules dir (usually /usr/local/lib/node_modules). It will also symbolically link two executables into your path:
docter: the nodejs wrapper.gfm: the ruby redcarpet/pygments wrapper.Both of these executables take markdown input through STDIN and output formatted HTML on STDOUT.
gfm).ghf_marked.css (in this repo) to Marked's custom CSS list.Uncomment the doc_header() function in github-flavored-markdown.rb and include any of the built-in styles from pygments. Replace :style => 'vs' with one of the styles in the comment block.
Outputting the emacs style to the document header:
class HTMLwithPygments < Redcarpet::Render::XHTML
def doc_header()
'<style>' + Pygments.css('.highlight',:style => 'emacs') + '</style>'
end
def block_code(code, language)
Pygments.highlight(code, :lexer => language, :options => {:encoding => 'utf-8'})
end
end