vdb/lib/utils.py
def convert_md_references(md_text):
    """Method to convert markdown list to references url format"""
    if not md_text:
        return []
    ref_list = []
    md_text = md_text.replace("\n", "").strip()
    for ref in md_text.split("- "):
        if not ref:
            continue
        parts = ref.split("](")
        if len(parts) == 2:
            ref_list.append(
                {"name": parts[0].replace("[", ""), "url": parts[1].replace(")", "")}
            )
    return ref_list
Method to convert markdown list to references url format
Method to convert markdown list to references url format
Method to convert markdown list to references url format
def convert_md_references(md_text):
    if not md_text:
        return []
    ref_list = []
    md_text = md_text.replace("\n", "").strip()
    for ref in md_text.split("- "):
        if not ref:
            continue
        parts = ref.split("](")
        if len(parts) == 2:
            ref_list.append(
                {"name": parts[0].replace("[", ""), "url": parts[1].replace(")", "")}
            )
    return ref_list
def convert_md_references ( md_text ) : if not md_text : return [ ] ref_list = [ ] md_text = md_text . replace ( "\n" , "" ) . strip ( ) for ref in md_text . split ( "- " ) : if not ref : continue parts = ref . split ( "](" ) if len ( parts ) == 2 : ref_list . append ( { "name" : parts [ 0 ] . replace ( "[" , "" ) , "url" : parts [ 1 ] . replace ( ")" , "" ) } ) return ref_list
Method to convert markdown list to references url format
Method to convert markdown list to references url format
"""Method to convert markdown list to references url format"""
md_text