-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Email links support #3
Comments
Email link support is coming in version 0.2.0. |
Great! You could create a milestone :) BTW, here is a failing test for email: https://github.com/hkdobrev/parsedown/commit/2c21118d806d0e07651e788201211b3185876acc |
What's up with this one? |
Any progress on this? Seems simple, and it is part of the original markdown syntax. |
@erusev Great! Perhaps you should mention Parsedown does not support obfuscation in the readme or something. It could be useful for systems which rely on this feature and consider changing their Markdown parser. |
For someone who wants obfuscated emails, quick and dirty: Add this somewhere outside the class. function getObfuscatedEmailLink($email) {
$out = '';
for($i=0; $i < strlen($email); $i++){
$out .= "&#" . ord($email[$i]) . ";";
}
return $out;
} In the if($name == 'href') {
$markup .= " $name=\"".$value.'"';
} else {
$markup .= " $name=\"".self::escape($value).'"';
} In the $url = getObfuscatedEmailLink($url);
$url = "mailto:$url"; |
@jenstornell Cheers |
Parsedown does not support email links.
http://daringfireball.net/projects/markdown/syntax#autolink
According to the spec it also has to support obfuscation of the email address.
The text was updated successfully, but these errors were encountered: