import re


def strip_markdown(s):
    """Strip markdown formatting"""
    # Bold
    s = re.sub(r"\*\*(.*)\*\*", r"\1", s)
    # Italics
    s = re.sub(r"\*(.*)\*", r"\1", s)
    # Strikethrough
    s = re.sub(r"~~(.*)~~", r"\1", s)
    # Spoiler
    s = re.sub(r">!(.*)!<", r"\1", s)
    # Quote
    s = re.sub(r"^> ?(.*)", r"\1", s)
    # Inline code
    s = re.sub(r"`(.*)`", r"\1", s)
    # Code block
    s = re.sub(r"^( {4}|\t)+(.*)", r"\2", s)
    # Link
    s = re.sub(r"\[(.*)\]\((.*)\)", r"\1", s)

    return s