Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Convert Wolfram Language data into Markdown-friendly table strings
ResourceFunction["MarkdownTableString"][data] creates a Markdown table string of data. | |
ResourceFunction["MarkdownTableString"][data,{header1,header2,…}] creates a Markdown table string with column headers headeri. | |
ResourceFunction["MarkdownTableString"][assoc,k,v] creates a Markdown table string for the values in assoc with headers k and v. |
Create a Markdown string for a simple table:
| In[1]:= | ![]() |
| Out[1]= | ![]() |
Create a Markdown string for a table with column headers:
| In[2]:= | ![]() |
| Out[2]= | ![]() |
Create a Markdown string for a Dataset:
| In[3]:= | ![]() |
| Out[3]= | ![]() |
Simple Association formatted as labeled rows:
| In[4]:= |
| Out[4]= | ![]() |
Add a header to label just the keys:
| In[5]:= |
| Out[5]= | ![]() |
Add another header to label the values:
| In[6]:= |
| Out[6]= | ![]() |
Label just the values:
| In[7]:= |
| Out[7]= | ![]() |
Format a Dataset in Markdown with row and column headers:
| In[8]:= | ![]() |
| Out[8]= | ![]() |
Specify a specific string to use for values that are not present in the data:
| In[9]:= | ![]() |
| Out[9]= | ![]() |
Create a Markdown table of food data:
| In[10]:= | ![]() |
| Out[11]= | ![]() |
Copy the table to the clipboard:
| In[12]:= |
Paste the table into a Markdown viewer (such as dillinger.io) to see the results formatted:

Missing values are automatically padded:
| In[13]:= | ![]() |
| Out[13]= | ![]() |
Partial headers are padded:
| In[14]:= | ![]() |
| Out[14]= | ![]() |
An Association with List values by default indicates labeled columns of data:
| In[15]:= |
| Out[16]= | ![]() |
Separate the keys and values to make the data correspond to rows:
| In[17]:= |
| Out[17]= | ![]() |
The option "MissingTableElement" does not cover values of the form Missing[…]:
| In[18]:= |
| Out[19]= | ![]() |
Use DeleteMissing to actually remove the data so that "MissingTableElement" will be used:
| In[20]:= |
| Out[20]= | ![]() |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License