V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  seqs  ›  全部回复第 1 页 / 共 1 页
回复总数  2
2015-12-01 18:39:30 +08:00
回复了 phoenixlzx 创建的主题 Markdown Markdown 和 MathJax 共存有什么比较好的办法?
说下我的方案吧, mathjax 公式外层增加识别串,例如:

^^^mathjax

f(x) = \int_{-\infty}^\infty
\hat f(\xi)\,e^{2 \pi i \xi x}
\,d\xi

^^^

marked 处理前先匹配出该串,将该串哈希 ID 替换原字符串,并存放到变量中, marked 解析完毕,再将哈希 ID 替换回原内容并做解析。

可以参考这里: https://github.com/seqs/tractor/blob/master/app/helpers/markdown.js#L81
我这里用的 KaTeX
2015-11-27 21:01:51 +08:00
回复了 moxuanyuan 创建的主题 程序员 大家用什么系统来做团队的知识库?
自己写了个,后续会加上权限管理、 Tag 分类等功能: https://github.com/seqs/tractor
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1503 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 17:14 · PVG 01:14 · LAX 10:14 · JFK 13:14
Developed with CodeLauncher
♥ Do have faith in what you're doing.