Convert youtube link

convert_utube_link(utube_link)

Arguments

utube_link

a link to a youtube video that may or may not be "www.youtube.com/embed" or "www.youtube.com/watch?v=" format.

Value

Returns a youtube link in the "watch" format so it will render properly in Leanpub or Coursera-friendly files