Fix malformed note directives.