code: def clean_markdown(text):
      
      result = text
  
      if isinstance(text, str):
          result = ''.join(
              BeautifulSoup(markdown(text), 'lxml').findAll(text=True))
  
      return result
docs: Parse markdown sintaxt to html.