sonic-pi

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

C++

Code. Music. Live.

Kramdown::Converter::Base#generate_id

Generate an unique alpha-numeric ID from the the string +str+ for use as a header ID.

Uses the option +auto_id_prefix+: the value of this option is prepended to every generated
ID.

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/converter/base.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Kramdown--Converter--Base-generate_id-for-pr


# Commit to git

git add app/server/ruby/vendor/kramdown-2.1.0/lib/kramdown/converter/base.rbgit commit -m "better docs for Kramdown::Converter::Base#generate_id"


# 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--Converter--Base-generate_id-for-pr

hub pull-request


# Celebrate!