Skip to content
Snippets Groups Projects
Commit 4ed1a482 authored by Waylon Flinn's avatar Waylon Flinn
Browse files

more complete example

parent 3fcb5615
No related branches found
No related tags found
No related merge requests found
...@@ -28,6 +28,9 @@ var md = require('markdown-it')(), ...@@ -28,6 +28,9 @@ var md = require('markdown-it')(),
mk = require('markdown-it-katex'); mk = require('markdown-it-katex');
md.use(mk); md.use(mk);
// double backslash is required for javascript strings, but not html input
var result = md.render('# Math Rulez! \n $\\sqrt{3x-1}+(1+x)^2$');
``` ```
Include the KaTeX stylesheet in your html: Include the KaTeX stylesheet in your html:
......
{ {
"name": "markdown-it-katex", "name": "markdown-it-katex",
"version": "1.0.8", "version": "1.0.9",
"description": "Fast math support for markdown-it with KaTeX", "description": "Fast math support for markdown-it with KaTeX",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment