def METHOD_NAME(self, md):
    """Insert `<del>test</del>` tags as `~~test~~` and `<sub>test</sub>` tags as `~test~`."""
    config = self.getConfigs()
    delete = bool(config.get('delete', True))
    subscript = bool(config.get('subscript', True))
    smart = bool(config.get('smart_delete', True))
    md.registerExtension(self)
    escape_chars = []
    if delete or subscript:
        escape_chars.append('~')
    if subscript:
        escape_chars.append(' ')
    util.escape_chars(md, escape_chars)
    tilde = None
    md.inlinePatterns.register(SimpleTextInlineProcessor(NOT_TILDE), 'not_tilde', 70)
    if delete and subscript:
        tilde = TildeSmartProcessor(r'~') if smart else TildeProcessor(r'~')
    elif delete:
        tilde = TildeSmartDeleteProcessor(r'~') if smart else TildeDeleteProcessor(r'~')
    elif subscript:
        tilde = TildeSubProcessor(r'~')
    if tilde is not None:
        md.inlinePatterns.register(tilde, "sub_del", 65)