fixed spacing before inline math
This commit is contained in:
parent
749b2aaec0
commit
8e74fcbc45
1 changed files with 2 additions and 1 deletions
|
@ -57,7 +57,8 @@
|
|||
inline = true;
|
||||
|
||||
while (matches !== null) {
|
||||
text = `${text.replace(matches[0], katex.renderToString(matches[0].replace(/\$/g, '')))}`;
|
||||
const renderedKatex = katex.renderToString(matches[0].replace(/\$/g, ''));
|
||||
text = `${text.replace(matches[0], ` ${renderedKatex}`)}`;
|
||||
matches = regex.exec(katexString);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue