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

jekyll转义问题 #2

Open
Yhzhtk opened this issue Sep 2, 2013 · 1 comment
Open

jekyll转义问题 #2

Yhzhtk opened this issue Sep 2, 2013 · 1 comment

Comments

@Yhzhtk
Copy link
Owner

Yhzhtk commented Sep 2, 2013

在文章中遇到 {{ 或者 {% 的符号要直接显示出来。
由于这个符号是jekyll的语法范围内,如果直接写的话是不行的。转义方法是,直接将前面的符号,用{{ "符号" }}输出,则后面的符号自然不会被解释。

如:要显示 {% 用 {{ "{%" }}, 要显示 {{ 用 {{ "{{" }}

@Yhzhtk
Copy link
Owner Author

Yhzhtk commented Nov 1, 2013

如果在pre标签中带有 '<' 或者 '>',也需要转移,直接写成 '<' 或者 '>' 就行了。

yuy4o added a commit to yuy4o/yuy4o.github.io that referenced this issue Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant