UNPKG

markdown-it-texmath

Version:
17 lines (12 loc) 354 B
'use strict'; const tm = require('../texmath.js'); const md = require('markdown-it')({html:true}).use(tm,{engine:require('katex'), delimiters:'dollars'}); const str = ` With > $$ > x > $$ `; // overwrite texmath render function (suppressing katex) // tm.render = function(tex, isblock) { return tex; } console.log(md.render(str));