sonic-pi

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

C++

Code. Music. Live.

Kramdown::Parser::Kramdown#parse_spans

Parse all span-level elements in the source string of @src into +el+.

If the parameter +stop_re+ (a regexp) is used, parsing is immediately stopped if the regexp
matches and if no block is given or if a block is given and it returns +true+.

The parameter +parsers+ can be used to specify the (span-level) parsing methods that should
be used for parsing.

The parameter +text_type+ specifies the type which should be used for created text nodes.

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/parser/kramdown.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Kramdown--Parser--Kramdown-parse_spans-for-pr


# Commit to git

git add app/server/ruby/vendor/kramdown-2.1.0/lib/kramdown/parser/kramdown.rbgit commit -m "better docs for Kramdown::Parser::Kramdown#parse_spans"


# 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--Parser--Kramdown-parse_spans-for-pr

hub pull-request


# Celebrate!