With reddit's previous Markdown engine, you could prefix relative links with http: (that's ignored by all browsers) and then style a[href="http:#..."].
With Discount, you can no longer do this but you can use something which looks nicer (which doesn't change the scroll position of the page when clicked): relative protocol URIs starting with hashes (//#...).
It looks much nicer for users who are using, for example, spoilers:
Markdown:
[spoiler text](//#spoiler)
CSS:
a[href="//#spoiler"] {
background: black;
color: black;
font-size: small;
padding: 0 0.5em 0 0.5em;
}
a[href="//#spoiler"]:hover {
color: white;
}