Clean up delimiter picking for math env
Opened this issue · 0 comments
github-actions commented
Clean up delimiter picking for math env
options: Options = {}
) => {
const builtInDelimiters =
node.delimiters === '()' ? ['\\(', '\\)'] : ['$', '$']
console.log(node.delimiters)
// TODO: Clean up delimiter picking for math env
const delimiters = options.inlineMathDelimiters
? options.inlineMathDelimiters === '()'
? ['\\(', '\\)']
: ['$', '$']
: builtInDelimiters
const [left, right] = delimiters
return ` ${left} ${toLatex(node.children)} ${right} `
}
48d21aea7cc09e01d09c08543b7f46ebb96f29b2