Make md-ref elements actionable

They are now clickable, will be highlighting referenced code
fragments and scrolling to the first one.