https://github.com/cben/codemirror-mathjax
Experimenting to replace $math$ with formulas inside CodeMirror
https://github.com/cben/codemirror-mathjax
codemirror hacktoberfest mathjax tex
Last synced: about 2 months ago
JSON representation
Experimenting to replace $math$ with formulas inside CodeMirror
- Host: GitHub
- URL: https://github.com/cben/codemirror-mathjax
- Owner: cben
- License: other
- Created: 2013-06-06T06:45:24.000Z (almost 12 years ago)
- Default Branch: gh-pages
- Last Pushed: 2017-08-11T08:48:08.000Z (over 7 years ago)
- Last Synced: 2025-03-07T00:35:01.475Z (about 2 months ago)
- Topics: codemirror, hacktoberfest, mathjax, tex
- Language: JavaScript
- Homepage: http://cben.github.io/CodeMirror-MathJax/demo.html
- Size: 70.3 KB
- Stars: 21
- Watchers: 6
- Forks: 3
- Open Issues: 32
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UPDATE: See the more mature https://github.com/SamyPesse/codemirror-widgets
codemirror-widgets powers [GitBook's new desktop editor](https://www.gitbook.com/blog/releases/editor-5-beta),
is abstracted to supports rendering in-place various things (math, links, images),
and seems generally well structured.I haven't carefully reviewed codemirror-widgets yet, but I'll probably abandon this project in favor of improving codemirror-widgets, and switch [mathdown](https://github.com/cben/mathdown) to it too.
# Attempt at CodeMirror + in-place MathJax
Experimenting to replace $math$ (and related LaTeX syntaxes) with formulas in CodeMirror.
Buggy and work-in-progress...Mostly tested with CodeMirror 4.x, 5.x versions but probably works with 3.x too.
Performance is currently OK with MathJax 2.4, horribly slow with 2.5 or 2.6. Working on it...
## Demo
http://cben.github.io/CodeMirror-MathJax/demo.html
If you just want to use this for writing, check out [mathdown.net](http://mathdown.net) powered by https://github.com/cben/mathdown.
## UNSTABLE API
I'm currently changing the API at will.
If you want to use this for anything do contact me — I'll be glad to help.## Git trivia
After checking out, run this to materialize CodeMirror subdir:
git submodule update --init
I'm directly working in `gh-pages` branch without a `master` branch,
as that's the simplest thing that could possibly work;
http://oli.jp/2011/github-pages-workflow/ lists several alternatives.TODO: learn about bower or other ways to manage local vs online deps.