Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment
下面是一些问题的记录.
http://theme-next.iissnan.com/
主要是LaTeX和markdown一些符号的语义冲突。
1:
公式中出现两个下划线时,markdown会将两个下划线之间的部分识别为斜体。解决方法是将
\node_modules\kramed\lib\rules\inline.js
中的
escape
项和 em
项做如下更改:
1 | // escape: /^\\([\\`*{}\[\]()#$+\-.!_>])/, |
以及 1
2// em: /^\b_((?:__|[\s\S])+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
em: /^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,
记得将 \themes\next\_config.yml
中的 math
项中的 per_page
项设置为 false
,
否则要在每篇文章的 Front-matter
中加入
mathjax: true
.
2: 公式中出现两个及以上的 <
时, 某两个
<
之间的内容可能会不见.
在这些小于号的前后加上空格即可.
3: 公式中出现多个 *
时,
某两个星号之间的内容也会被markdown变为斜体. 解决方法是用
\ast
代替.
4: 两个大括号连用可能会渲染失败(虽然我还没碰到过), 解决方法是在大括号之间加空格.