nshen / coding-blog

程序员的私房极简博客系统
https://nshen.github.io/project/2017-09-04/new-blog/
MIT License
25 stars 7 forks source link

你好我想要支持 latex公司不知道可以支持这个功能不? #3

Closed zzhgithub closed 5 years ago

nshen commented 5 years ago

没用过latex,不太确定呀,但内部用的 metalsmith-markdown 将md文件转成html,你可以查看一下是否支持,所有build代码都在这里 https://github.com/nshen/coding-blog/blob/master/build.js

zzhgithub commented 5 years ago

谢谢回复 我已经找到方法了

const mathjax = require('metalsmith-mathjax'); image

使用这个包 然后在每个post文件里 头部加上 mathjax: true 就可以写了

我懒的提交了 :)