insert snippet-wrapper depth detection (experimental)