https://github.com/diversen/markdown-it-embed-mathjax-highlight
A markdown-it lib with support for embedded MP4, code highlight, and MathJax.
https://github.com/diversen/markdown-it-embed-mathjax-highlight
Last synced: over 1 year ago
JSON representation
A markdown-it lib with support for embedded MP4, code highlight, and MathJax.
- Host: GitHub
- URL: https://github.com/diversen/markdown-it-embed-mathjax-highlight
- Owner: diversen
- Created: 2016-05-30T16:39:53.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-07T10:05:18.000Z (about 10 years ago)
- Last Synced: 2024-04-24T20:02:59.959Z (about 2 years ago)
- Language: JavaScript
- Size: 272 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# markdown-it-embed-mathjax-highlight.js
Markdown-it with mathjax, highlightjs, and html5 video embed.
Install:
// Install and save
npm install markdown-it-embed-mathjax-highlight --save
Usage:
// include the lib.
md = require('markdown-it-embed-mathjax-highlight');
// Change options as you like (as in markdown-it), e.g.:
md.options.html = true;
// Render a string
var str = "
test
# her er en test  $1 *2* 3$";
console.log(md.render(str));