hexo icon indicating copy to clipboard operation
hexo copied to clipboard

写文章时,代码块有特殊字符,渲染时会转义

Open vfasky opened this issue 13 years ago • 4 comments

如:

<% if (page.description){ %>
<meta name="description" content="<%= page.description %>">
<% } else if (page.content){ %>
<%- auto_keyword_desc(page.content) %>
<% } else if (config.description){ %>
<meta name="description" content="<%= config.description %>">
<% } %>

渲染后成了:

demo

vfasky avatar May 17 '13 14:05 vfasky

我也遇到了这个问题

A-limon avatar May 27 '13 02:05 A-limon

刚刚问了同样的问题,求解答

zippera avatar May 30 '13 00:05 zippera

目录的解决方案是声明html

    ``` html
        html 内容
    ```

vfasky avatar May 30 '13 00:05 vfasky

感谢

zippera avatar May 30 '13 08:05 zippera