【发布时间】:2015-06-05 22:29:50
【问题描述】:
我已经使用 Jeykll 工具将标记内容生成到 HTMl 中。
我想将以下标记元素分组到 div 元素或任何其他自定义 Html 标记中。
标记下来
#Multiple Axis
{:.title}
Different types of data can be visualized in a single chart with the help of
{: .description}
It can be used when we need to compare the trends of different kinds of data.
{: .description}
HTML 输出
<h1 id="multiple-axis" class="title">Multiple Axis</h1>
<p class="description">Different typ`enter code here`es of data can be visualized in a single chart with the help of</p>
<p class="description">It can be used when we need to compare the trends of different kinds of data.</p>
如何将上面的 markdown 分组到 Div 元素或任何这样的自定义标签中
<div class="">
<h1 id="multiple-axis" class="title">Multiple Axis</h1>
<p class="description">Different types of data can be visualized in a single chart with the help of</p>
<p class="description">It can be used when we need to compare the trends of different kinds of data.</p>
</div>
【问题讨论】:
-
抱歉跑题了。你能指出我在哪里可以找到有关代码中
{: .title }的任何信息吗?不知道这个功能。 -
@mahish 这些是attribute lists,这是一个非标准功能,只有少数解析器支持。 Kramdown 和 Python-Markdown(带有extension)是我所知道的唯一两个肯定支持它的。可能还有更多。