Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit bfe283457bc8ef57cf434bc6132ad09be797143e 1 parent 3750c18
@tantek authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 cassis.js
View
4 cassis.js
@@ -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>',
Please sign in to comment.
Something went wrong with that request. Please try again.