main
1#!/usr/bin/env python
2# -*- coding: utf-8 -*-
3import re
4
5
6def has_markdown_img(text: str) -> bool:
7 """Check if the text contains markdown img format.
8
9 
10 """
11 pattern = r"!\[.*?\]\(.*?\)"
12 return bool(re.search(pattern, text))