Skip to content

Instantly share code, notes, and snippets.

@tamouse
Last active May 25, 2023 13:46
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tamouse/4204dddabb6b072b0242 to your computer and use it in GitHub Desktop.
Save tamouse/4204dddabb6b072b0242 to your computer and use it in GitHub Desktop.
Adding a class to a table in markdown (using kramdown processor as default in Jekyll).
# Let's try out a table with kramdown class tag
| A simple | table |
| with multiple | lines|
{: .my-class }
<h1 id="lets-try-out-a-table-with-kramdown-class-tag">Let’s try out a table with kramdown class tag</h1>
<table class="my-class">
<tbody>
<tr>
<td>A simple</td>
<td>table</td>
</tr>
<tr>
<td>with multiple</td>
<td>lines</td>
</tr>
</tbody>
</table>
@apotonick
Copy link

Thanks, you saved me an hour!

@hmua
Copy link

hmua commented May 25, 2023

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment