Using string comparison was causing problems because it generate as <a href.. class=..> or <a class=.. href..>, which link_to and content_tag to ensure it works everywhere.
Added support for full urls, so that links that use full paths will be highlighted properly.
Fixed style to match authors original style.