Tab control in Jekyll and Markdown?

@MichaelCurrin
@gavin-terpstra

Here is my way to add class to the markdown (Kramdown).

See below code.

#1 The code below only works when the parse option ({::options parse_block_html=“true” /}) is defined as true, so that the markdown inside the block level won’t be ruined.

{::options parse_block_html="true" /}

<div class="{{ page.tab_title1}}">

{% include en/platform/kinetic.md %}

</div>

#2 If you use capture and endcapture variable, you can wrap your markdown format with elements, and it will not ruin the markdown format.,

{% capture foxy_test %}

{% include en/platform/foxy.md %}

{% endcapture %}

<div class="foxy_test" ">{{ foxy_test | markdownify }}</div>

#3 You can add class to the one line string to the markdown format using {: .class_name}

This looks very simple, but only problem is that I can only add a class to one string. I don’t know the reason. I guess there is some way to wrap whole contents…


# Title (#title)
{: .class_name}

fdsafasfas

```

They all works great for me