title: Python-docx : Hyperlink text from markdown in table
body: <p>I was looking to insert a hyperlink in the text within the DOCX table. Currently the data I have has the hyperlinks in markdown format.</p>
  <p>Is there a way to add this as a hyperlink in my DOCx table? I'm aware that this can be done for paragraphs <a href="https://stackoverflow.com/questions/47666642/adding-an-hyperlink-in-msword-by-using-python-docx*">*here</a>, but was wondering it if it could be done in tables.</p>
  <p>Example code:</p>
  <pre><code>import pandas as pd
  import docx
  
  # Sample Data
  
  df = pd.DataFrame([[&quot;Some [string](www.google.com) is the link to google&quot;,'IDnum1',&quot;China&quot;],
                [&quot;This is string 2&quot;,&quot;IDnum3&quot;,&quot;Australia&quot;],
                [&quot;some string3&quot;,&quot;IDNum5&quot;,&quot;America&quot;]], columns = [&quot;customer string&quot;,&quot;ID number&quot;,&quot;Country&quot;])
  
  # Docx DF to table
  
  # open an existing document
  doc = docx.Document()
  
  # add a table to the end and create a reference variable
  # extra row is so we can add the header row
  t = doc.add_table(df.shape[0]+1, df.shape[1])
  
  # add the header rows.
  for j in range(df.shape[-1]):
      t.cell(0,j).text = df.columns[j]
  
  # add the rest of the data frame
  for i in range(df.shape[0]):
      for j in range(df.shape[-1]):
          t.cell(i+1,j).text = str(df.values[i,j])
  
  # save the doc
  doc.save('./test.docx')
  </code></pre>
  <p>Any help will be greatly appreciated!</p>