# How to add a class attribute to a table created using markdown

**URL:** <https://meta.discourse.org/t/how-to-add-a-class-attribute-to-a-table-created-using-markdown/84338>\
**Category:** Product Support\
**Created:** [April 1, 2018, 6:04pm UTC](https://meta.discourse.org/t/how-to-add-a-class-attribute-to-a-table-created-using-markdown/84338 "2018-04-01T18:04:14Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![sarahann](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sarahann/32/96703_2.png) [@sarahann](https://meta.discourse.org/u/sarahann)\
**Post date:** [June 6, 2018, 11:31pm UTC](https://meta.discourse.org/t/how-to-add-a-class-attribute-to-a-table-created-using-markdown/84338/8 "2018-06-06T23:31:41Z")

</div>

Really!?

I know how to add\_to\_class() in the plugin.rb file.

But how would I add a class to a .hbs file ?

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-a-class-attribute-to-a-table-created-using-markdown/84338)._
