mkdocs_jupyter/utils.py
def slugify(value):
    """
    Converts to lowercase, removes non-word characters (alphanumerics and
    underscores) and converts spaces to hyphens. Also strips leading and
    trailing whitespace.
    """
    value = (
        unicodedata.normalize("NFKD", value)
        .encode("ascii", "ignore")
        .decode("ascii")
    )
    value = re.sub(r"[^\w\s-]", "", value).strip().lower()
    return re.sub(r"[-\s]+", "-", value)

    Converts to lowercase, removes non-word characters (alphanumerics and
    underscores) and converts spaces to hyphens. Also strips leading and
    trailing whitespace.
    
Converts to lowercase, removes non-word characters (alphanumerics and
underscores) and converts spaces to hyphens. Also strips leading and
trailing whitespace.
Converts to lowercase removes non - word characters ( alphanumerics and underscores ) and converts spaces to hyphens . Also strips leading and trailing whitespace .
def slugify(value):
    value = (
        unicodedata.normalize("NFKD", value)
        .encode("ascii", "ignore")
        .decode("ascii")
    )
    value = re.sub(r"[^\w\s-]", "", value).strip().lower()
    return re.sub(r"[-\s]+", "-", value)
def slugify ( value ) : value = ( unicodedata . normalize ( "NFKD" , value ) . encode ( "ascii" , "ignore" ) . decode ( "ascii" ) ) value = re . sub ( r"[^\w\s-]" , "" , value ) . strip ( ) . lower ( ) return re . sub ( r"[-\s]+" , "-" , value )
Converts to lowercase, removes non-word characters (alphanumerics and
underscores) and converts spaces to hyphens.
Converts to lowercase removes non - word characters ( alphanumerics and underscores ) and converts spaces to hyphens .
"""
    Converts to lowercase, removes non-word characters (alphanumerics and
    underscores) and converts spaces to hyphens. Also strips leading and
    trailing whitespace.
    """
value