def get_md_name(s3_name):
    """Returns the filename with leading bullet list MD format."""

    path_tokens = s3_name.rstrip('/').split('/')
    indentation_level = len(path_tokens)
    list_prefix = indentation_level * 2 * ' ' + '* '
    file_basename = path_tokens[-1]
    if s3_name.endswith('/'):
        return list_prefix + file_basename
    else:
        bucket_url = "https://cimr-d.s3.amazonaws.com"
        return f"{list_prefix}[{file_basename}]({bucket_url}/{s3_name})"