LaTeX遇上Hexo——如何在Cloudflare Pages上启用公式渲染支持
发表于
分类于
杂项
解决方案
安装hexo-filter-mathjax插件(注意先把hexo-math插件卸载, 另外记得清理缓存)
1 | npm un hexo-math |
因为要在Cloudflare Pages上自动部署, 所以hexo-renderer-pandoc就不太能用了(pandoc依赖不好解决), 被迫继续用默认的hexo-renderer-markdown. 为了避免在解析的时候出现问题, 要注意转义LaTeX代码中的一些特殊字符:
1 | -$\epsilon_0$ |
测试
行内公式:
1 | $E=mc^{2}$ |
动手撸个解释器(1)
发表于
分类于
动手做
动手撸个解释器(0)
整个系列基于Crafting Interpreters 中文翻译, 用C#语言实现.
开始之前
这一系列文章打算作为头脑复健和C#进阶学习来做, 所以更新比较随缘.
文章的记号尽量与书中保持一致, 除了每章的学习外还有英语学习以及练习题解答.
在完成实现后还会尝试用一些高阶方法进行性能优化.
Hello World
发表于
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.
Quick Start
Create a new post
1 | $ hexo new "My New Post" |
More info: Writing
Run server
1 | $ hexo server |
More info: Server
Generate static files
1 | $ hexo generate |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
More info: Deployment