Kramdown and inline styling doesn't seem to work

Was trying to add some CSS class or ID to an heading tag defined in a markdown file.

Despite the numerous attempt, I was only able to get the code line printed as a string in the final html rather than the compiler to process it.

Despite the correct syntax seems to be {:.foo} I have tried in several other ways, including

{.:#foo}
{#foo}
{#.foo}
{:refdef: .Title}

The latter seems to not produce any output, but only when it is appended on the next line.

E.g.  ##title 2 
{:refdef: .Title}

Not sure whether I am missing something obvious.
Thanks

Ok, apparently the instruction need to be placed on the following line.

E.g.

##Heading 2
{: .Title}

Will add a class Title to the preceding heading

As far as I got it, it depends actually on what you apply the styling.

Try:

[Link](http://local.host){:.my-style style="color:pink"}