(function ($) {
  $.fn.bookmarkit = function(options) {
    this.each(function() {
      var $el = $(this);
      $el.append("yay!");
    });
    return this;
  }
  $.fn.bookmarkit.defaults = {};
}(jQuery));
@@ -15,95 +15,1246 @@
 %7B%0A  
-$.fn.bookmarkit = function(options) %7B%0A    this.each(function() %7B%0A      var $el = $(this
+/**%0A   * Iterates over the selection performs the foloowing: First, it generates an%0A   * ID for each of the element in the selection and applies it to the elemen.%0A   * Second it creates an anchor element containing either a FontAwesome icon or%0A   * an element specified by the user. This anchor is then given the ID of the%0A   * element as the 'href' attribute.%0A   * @param  %7BObject%7D options Extra options. Please look at $.fn.bookmarkit.defaults%0A   * @return %7BjQuery%7D         A jQuery object.%0A   */%0A  $.fn.bookmarkit = function(options) %7B%0A    var opts = $.extend(true, %7B%7D, $.fn.bookmarkit.defaults, options );%0A%0A    var $link_icon;%0A    if (opts.useFontAwesome) %7B%0A      $link_icon = $('%3Ci%3E%3C/i%3E').addClass('fa')%0A                               .addClass(opts.fontAwesomeIcon);%0A    %7D else %7B%0A      $link_icon = $(opts.anchorIcon);%0A    %7D%0A    var $anchor = $('%3Ca%3E%3C/a%3E').attr(opts.anchorAttrs)%0A                              .css(opts.anchorCSS)%0A                              .append($link_icon);%0A    this.each(function() %7B%0A      var $el = $(this);%0A      var id = $.fn.bookmarkit.getID.call(this)%0A      // var id = $el.html().split(' ').join('_').toLowerCase();%0A      $el.attr('id', id);%0A      var $my_anchor = $anchor.clone().attr('href', '#' + id
 );%0A 
@@ -1273,14 +1273,18 @@
 end(
-%22yay!%22
+$my_anchor
 );%0A 
@@ -1311,16 +1311,17 @@
 is;%0A  %7D%0A
+%0A
   $.fn.b
@@ -1342,16 +1342,887 @@
 ults = %7B
+%0A    // Set to true to use a font awesome icon as link icon. %0A    // If false please specify 'anchorIcon'.%0A    useFontAwesome: true,%0A    // The font awesome icon to be used the link icon.%0A    fontAwesomeIcon: 'fa-link',%0A    // Link icon to be used if 'useFontAwesome' is set to false.%0A    anchorIcon: null,%0A    // Attributes to be applied to the link element.%0A    anchorAttrs: %7B%0A      class: 'post-deep-link'%0A    %7D,%0A    // CSS styling to be applied to the link element.%0A    anchorCSS: %7B%7D%0A  %7D;%0A%0A  /**%0A   * Gets the ID to be applied to the element. This same ID will also be used%0A   * as the href for the link. This function is executed in the context of the%0A   * element being handled.%0A   * @return %7BString%7D The ID to be applied to the element%0A   */%0A  $.fn.bookmarkit.getID = function() %7B%0A    var $el = $(this);%0A    return $el.html().split(' ').join('_').toLowerCase();%0A  
 %7D;%0A%7D(jQu

Implement bookmarkit functionality