Render Hook for Headers

Hey folks, I am trying to add some classes to headers but I can not find any information about it

For example:

## My Title

I want to output

<h2 class="my-custom-class">My Title</h2>

Welcome Yordis! :wave:

I don’t think this feature is available yet. There’s still an open issue about render hooks for headers:

1 Like

A very simple shortcode would do what you want.

1 Like

This feature has been added by PR #7133. You can read more about that feature in Hugo’s documentation.

1 Like