Manual:Hooks/InternalParseBeforeSanitize

This hook is ideal for syntax-extensions after template/parser function execution which respect nowiki and HTML-comments.