code: def md_to_text(md):
      html = markdown.markdown(md)
      soup = BeautifulSoup(html, features="html.parser")
      return soup.get_text()
  
imports: import os
  from gradio_client import Client
  import markdown
  from bs4 import BeautifulSoup
label_desc: Use image node_id 2 for calling a global function with example usage: md_to_text(md) and returns: soup