]> git.wincent.com - wikitext.git/commit
Consistently apply "mailto" class to mailto URIs
authorWincent Colaiuta <win@wincent.com>
Fri, 27 Mar 2009 11:03:35 +0000 (12:03 +0100)
committerWincent Colaiuta <win@wincent.com>
Fri, 27 Mar 2009 11:03:35 +0000 (12:03 +0100)
commit2acdc7fb90cf17d88ec7b8230923782904ff70ec
treea43f925796b28e136bff8d63f13b93d21dac4f14
parent9bf593c15bcad7aa3ce3f50c0c2027fb8b971b8c
Consistently apply "mailto" class to mailto URIs

Implement more consistent CSS styling given mailto URIs.
The following inputs previously received "external" CSS
styling because mailto URIs are tokenized as URIs rather
than MAIL tokens:

  mailto:user@example.com
  [mailto:user@example.com email me]

Only raw email addresses were correctly styled:

  user@example.com

Now all of the above cases consistently use the "mailto"
class.

See:
  https://wincent.com/issues/1262

Signed-off-by: Wincent Colaiuta <win@wincent.com>
ext/parser.c
spec/autolinking_spec.rb
spec/external_link_spec.rb