Permalink
Browse files

auto_link: add class h-x-username for auto-linked @-names

  • Loading branch information...
1 parent 3750c18 commit bfe283457bc8ef57cf434bc6132ad09be797143e @tantek committed Mar 5, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 cassis.js
View
@@ -1122,6 +1122,10 @@ function auto_link() {
$wmi, '">', $mi, '</a> <iframe class="youtube-player auto-link figure" width="480" height="385" style="border:0" src="http://www.youtube.com/embed/',
$yvid, '"></iframe>',
$afterlink);
+ } else if ($mi[0]==='@') {
+ $t = strcat($t, '<a class="auto-link h-x-username" href="',
+ $wmi, '">', $mi, '</a>',
+ $afterlink);
} else {
$t = strcat($t, '<a class="auto-link" href="',
$wmi, '">', $mi, '</a>',

0 comments on commit bfe2834

Please sign in to comment.