Update docs to include preprocessTag function