Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
vfasky opened this issue May 17, 2013 · 4 comments
Closed

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

vfasky opened this issue May 17, 2013 · 4 comments
Labels
bug Something isn't working

Comments

@vfasky
Copy link

vfasky commented May 17, 2013

如:

<% 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

@A-limon
Copy link

A-limon commented May 27, 2013

我也遇到了这个问题

@zippera
Copy link

zippera commented May 30, 2013

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

@vfasky
Copy link
Author

vfasky commented May 30, 2013

目录的解决方案是声明html

    ``` html
        html 内容
    ```

@zippera
Copy link

zippera commented May 30, 2013

感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants