sonic-pi

https://github.com/sonic-pi-net/sonic-pi

C++

Code. Music. Live.

Kramdown::Document#initialize

Create a new Kramdown document from the string +source+ and use the provided +options+. The
options that can be used are defined in the Options module.

The special options key :input can be used to select the parser that should parse the
+source+. It has to be the name of a class in the Kramdown::Parser module. For example, to
select the kramdown parser, one would set the :input key to +Kramdown+. If this key is not
set, it defaults to +Kramdown+.

The +source+ is immediately parsed by the selected parser so that the root element is
immediately available and the output can be generated.

Source | Google | Stack overflow

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/document.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Kramdown--Document-initialize-for-pr


# Commit to git

git add app/server/ruby/vendor/kramdown-2.1.0/lib/kramdown/document.rbgit commit -m "better docs for Kramdown::Document#initialize"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Kramdown--Document-initialize-for-pr

hub pull-request


# Celebrate!