~fabrixxm/confy

299071b0cd8c459e3011d50b4ca735a8eee58767 — fabrixxm 27 days ago 70d4cbd master
convert_markdown_links: mark regexp as raw string
1 files changed, 1 insertions(+), 1 deletions(-)

M src/utils.py
M src/utils.py => src/utils.py +1 -1
@@ 6,7 6,7 @@ from gi.repository import GLib

def convert_markdown_links(text):
    """converts markdown links to html hyperlinks"""
    return re.sub("\[([^]]+?)\]\(([^)\s]+?)(?:\s.*?)?\)", r'<a href="\2">\1</a>', text)
    return re.sub(r"\[([^]]+?)\]\(([^)\s]+?)(?:\s.*?)?\)", r'<a href="\2">\1</a>', text)

def clean_markup(text):
    """remove unsupported markup from text to use in label"""