Skip to content

Instantly share code, notes, and snippets.

@matths
Last active February 9, 2019 18:53
Show Gist options
  • Save matths/1e526b10de1d6f623911010da65faa0c to your computer and use it in GitHub Desktop.
Save matths/1e526b10de1d6f623911010da65faa0c to your computer and use it in GitHub Desktop.
"You can also use the approach below, which will result in a very nice data table at the top of your markdown when viewing the file GitHub:"
{
Title: 'My awesome markdown file',
Author: 'Me',
Scripts: [
'js/doStuff.js',
'js/doMoreStuff.js'
]
}
Title Author Scripts
My awesome markdown file
Me
js/doStuff.js
js/doMoreStuff.js

##Header Regular text and stuff goes here.

<article class="markdown-body entry-content" itemprop="text"><table data-table-type="yaml-metadata">
<thead>
<tr>
<th>Title</th>
<th>Author</th>
<th>Scripts</th>
</tr>
</thead>
<tbody>
<tr>
<td><div>My awesome markdown file</div></td>
<td><div>Me</div></td>
<td><div><table>
<tbody>
<tr>
<td><div>js/doStuff.js</div></td>
<td><div>js/doMoreStuff.js</div></td>
</tr>
</tbody>
</table>
</div></td>
</tr>
</tbody>
</table>
<p>##Header
Regular text and stuff goes here.</p>
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment