converts #tags in notes to contexts