Closed kaydwithers closed 7 years ago
I'm building a site with Contentful and I'm trying to put a class on a heading.
My code looks like the below
<vue-markdown class="f3"> ### {{ hello.fields.heading }} </vue-markdown>
And renders out to
<div class="f3"> <h3>Hello</h3> </div>
What I would really like to render out is
<h3 class="f3"> Hello </h3>
Is putting a class on a markdown heading possible? Sorry if this has been covered already.
Is looks like is impossible to achieve, but you can write HTML in markdown string like this:
<h3 class="f3">Hello</h3>
I'm very sorry because this is not a good idea.
I'm building a site with Contentful and I'm trying to put a class on a heading.
My code looks like the below
And renders out to
What I would really like to render out is
Is putting a class on a markdown heading possible? Sorry if this has been covered already.