如何在HTML标记中插入markdown,以便两者都正确呈现?

时间:2015-12-10 02:32:47

标签: html markdown

我注意到在我的网站上使用HTML标记中的markdown导致markdown保持不变(即,仅被视为纯文本)。例如在这个例子中:

<div class="note">
**NOTE:**
* I merely study computing and related topics in my spare time, I have no formal training in technology or the associated legalities, so while I am trying to ensure this post (especially the glossary section) is as accurate as I can, I cannot guarantee its accuracy. If you have any corrections or edit recommendations please forward them to my email address.
* Hyperlinks to third-party resources (including Wikipedia) that I cannot guarantee the accuracy are included in this article.
</div>

这是相关的div.note SCSS类:

div.note {
    padding: 1px;
    border: 2px solid rgb(255, 160, 160);
    background-color: #ffa0a0;
}

呈现为:

有没有办法解决这个问题,以便在最终的网页结果中正确呈现markdown和HTML语法?我不认为这是相关的,但如果是的话,我的网站上存在这个问题的是Jekyll供电。

我正在使用redcarpet扩展程序进行降价渲染。

0 个答案:

没有答案