Add this to the template.html file for working [[note links]] in the preview.