def get_markdown()

in Example-Project/utils.py [0:0]


def get_markdown(markdown_content):
    '''
    Takes the markdown provided from the NB as a list, converts it to a clean str
    '''
    str_index = markdown_content.index('   "source": [\n') + 1
    
    str_rt = ''
    
    for each in markdown_content[str_index:]:
        
        for b in ['#', '##', '###', '\n', '\\n', ']', "{", "}", '\"']:
            each = each.replace(b, '')

        str_rt += ' {}'.format(each)
            
    return str_rt