在tumblr中,支持降价。 我尝试在我的tumblr中添加一个语法较高的打火机(highlight.js),但遇到了一些问题。用Markdown写html标签?
highlight.js需要在HTML代码标记中添加类属性。
我尝试写这样的文章在我的tumblr:
<pre class="test">
<code class="html">
function A(){ return "hello world"; }
</code>
</pre>
在实际网页中的结果:
<pre>
<code>
function A(){ return "hello world"; }
</code>
</pre>
的类属性消失了...... 有没有可能在Markdown中添加HTML属性?
如果'的onload = “prettyPrint()”'已添加在'
'中,'ready()'的参数中不需要'prettyPrint()'。 –