waylonflinn/markdown-it-katex

Conflict with markdown-it-attrs

Larivact opened this issue · 0 comments

There is a syntax conflict with arve0/markdown-it-attrs:

var md = require('markdown-it')();

md.use(require('markdown-it-katex'));
md.use(require('markdown-it-attrs'));

var result = md.render('$\\sqrt{a}$');
console.log(result) // outputs <p a="">\sqrt</p>

Workaround: Changing the delimiters of markdown-it-attrs

Is there a way to resolve this without changing the delimiters or does markdown-it not support two plugins with conflicting syntaxes?