[Solved] Custom style on title/heading element?

Posted by thoraxe on
URL: https://discuss.asciidoctor.org/Solved-Custom-style-on-title-heading-element-tp4543.html

It's relatively easy to apply a custom style to a paragraph, div, etc:

[.category-info.helper.pt0]

However, I cannot for the life of me figure out how to apply a style to a heading/title.

For example, given the title:

=== This Title Is Styled

I want the ultimate HTML to be:

<h3 class="category-title">This Title Is Styled</h3>

The following doesn't work:

[category-title]
=== This...

Neither does:

[.category-title]
=== This...

Or putting it on one line:

[category-title]=== This...

Or with the dot:

[.category-title]=== This...

I've done a bunch of searching and I cannot seem to find out if this is possible or not.

Thanks!