def extract_urls_from_markdown(md):
 html = snudown.markdown(_force_utf8(md))
 links = SoupStrainer('a')
 for link in BeautifulSoup(html, parseOnlyThese=links):
  url = link.get('href')
  if url:
   (yield url)

def extract_urls_from_markdown ( md ) : html = snudown . markdown ( _force_utf8 ( md ) ) links = SoupStrainer ( 'a' ) for link in BeautifulSoup ( html , parseOnlyThese = links ) : url = link . get ( 'href' ) if url : ( yield url )
extract urls that will be hot links from a piece of raw markdown .