Skip to content

Commit

Permalink
edit CHANGE.md & fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandao committed Feb 9, 2015
1 parent 497b8db commit 09063de
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 37 deletions.
12 changes: 7 additions & 5 deletions CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,25 @@

#####v1.0.0 releases

发布v1.0.0正式版。

主要更新:

- 新建分支 `mathjax-version`,但不打算继续对此分支进行开发;
- 移除MathJax,改用Katex,解析和预览响应速度大幅度提高;
- 移除MathJax,改用KaTeX[#2](https://github.com/pandao/editor.md/issues/2),解析和预览响应速度大幅度提高[#3](https://github.com/pandao/editor.md/issues/3)
- 移除 `mathjax` 配置项;
- 移除 `mathjaxURL` 属性;
- 移除 `setMathJaxConfig()` 方法;
- 移除 `loadMathJax()` 方法;
- 移除MathJax的所有示例;
- 新增 `tex` 配置项,表示是否开启支持科学公式TeX;
- 新增 `tex` 配置项,表示是否开启支持科学公式TeX,基于KaTeX
- 新增 `katexURL` 属性;
- 新增 `loadKaTex` 方法;
- 新增 `loadKaTeX` 方法;
- 新增KaTeX的示例;
- `setCodeEditor()`方法更名为`setCodeMirror()`
- 合并CodeMirror使用到的多个JS模块文件,大幅减少HTTP请求,加快下载速度;
- 新增合并后的两个模块文件:`./lib/codemirror/modes.min.js``./lib/codemirror/addons.min.js`
- `Gulpfile.js` 新增合并CodeMirror模块文件的任务方法`codemirror-mode``codemirror-addon`
- 另外在使用Require.js时,因为CodeMirror的严格模块依赖,不使用上述合并的模块文件
- 另外在使用Require.js时,因为CodeMirror的严格模块依赖的限制,不能使用上述合并的模块文件,仍然采用动态加载多个模块文件
- 更新 `README.md` 等相关文档和示例;
- 解决Sea.js环境下Raphael.js无法运行的问题,即必须先加载Raphael.js,后加载Sea.js;
- 解决Sea.js环境下Raphael.js无法运行导致不支持流程图和时序图的问题,即必须先加载Raphael.js,后加载Sea.js;
6 changes: 3 additions & 3 deletions dist/js/editormd.js
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@
if (settings.tex)
{
if (!settings.inRequirejs) {
editormd.loadKaTex(function(){
editormd.loadKaTeX(function(){
editormd.$katex = katex;
katexHandle();
});
Expand Down Expand Up @@ -1459,7 +1459,7 @@
};

if (!settings.inRequirejs) {
editormd.loadKaTex(function(){
editormd.loadKaTeX(function(){
editormd.$katex = katex;
katexHandle();
});
Expand Down Expand Up @@ -1652,7 +1652,7 @@
* @param {Function} [callback=function()] 加载成功后执行的回调函数
*/

editormd.loadKaTex = function (callback) {
editormd.loadKaTeX = function (callback) {
editormd.loadCSS(editormd.katexURL.css, function(){
editormd.loadScript(editormd.katexURL.js, callback || function(){});
});
Expand Down
Loading

0 comments on commit 09063de

Please sign in to comment.