sonic-pi
https://github.com/sonic-pi-net/sonic-pi
C++
Code. Music. Live.
Kramdown::Parser::Kramdown.define_parser
Add a parser method * with the given +name+, * using +start_re+ as start regexp * and, for span parsers, +span_start+ as a String that can be used in a regexp and which identifies the starting character(s) to the registry. The method name is automatically derived from the +name+ or can explicitly be set by using the +meth_name+ parameter.
Edit
git clone [email protected]:sonic-pi-net/sonic-pi.git
cd sonic-pi
open app/server/ruby/vendor/kramdown-2.1.0/lib/kramdown/parser/kramdown.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Kramdown--Parser--Kramdown-define_parser-for-pr
# Commit to gitgit add app/server/ruby/vendor/kramdown-2.1.0/lib/kramdown/parser/kramdown.rbgit commit -m "better docs for Kramdown::Parser::Kramdown.define_parser"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Kramdown--Parser--Kramdown-define_parser-for-pr
hub pull-request
# Celebrate!