Index: markdown.php
===================================================================
--- markdown.php	(revision 106)
+++ markdown.php	(revision 107)
@@ -530,15 +530,15 @@
 		$url = str_replace(array('*', '_'),
 						   array($md_escape_table['*'], $md_escape_table['_']),
 						   $url);
-		$result = "<a href=\"$url\"";
+		$attributes = array();
 		if ( isset( $md_titles[$link_id] ) ) {
 			$title = $md_titles[$link_id];
 			$title = str_replace(array('*',     '_'),
 								 array($md_escape_table['*'], 
 									   $md_escape_table['_']), $title);
-			$result .=  " title=\"$title\"";
+			$attributes['title'] = $title;
 		}
-		$result .= ">$link_text</a>";
+		$result = l($link_text, $url, $attributes);
 	}
 	else {
 		$result = $whole_match;
@@ -556,16 +556,15 @@
 	$url = str_replace(array('*', '_'),
 					   array($md_escape_table['*'], $md_escape_table['_']), 
 					   $url);
-	$result = "<a href=\"$url\"";
+	$attributes = array();
 	if (isset($title)) {
 		$title = str_replace('"', '&quot;', $title);
 		$title = str_replace(array('*', '_'),
 							 array($md_escape_table['*'], $md_escape_table['_']),
 							 $title);
-		$result .=  " title=\"$title\"";
+		$attributes['title'] = $title;
 	}
-	
-	$result .= ">$link_text</a>";
+	$result = l($link_text, $url, $attributes);
 
 	return $result;
 }
