The only way I found to have it correctly on live notebook is to set both :link and :visited one with color:inherit the other without.