Improve inline latex regex matching
Signed-off-by: Sven Mäder <maeder@phys.ethz.ch>
This commit is contained in:
parent
78b3f50bfd
commit
fb57123e25
2 changed files with 20 additions and 11 deletions
|
@ -231,7 +231,7 @@ export const Commands = [
|
|||
runFn: function(roomId, args) {
|
||||
if (SettingsStore.getValue("feature_latex_maths")) {
|
||||
if (args) {
|
||||
let html = markdownSerializeIfNeeded(args, {forceHTML: false}, {forceTEX: true});
|
||||
const html = markdownSerializeIfNeeded(args, {forceHTML: false}, {forceTEX: true});
|
||||
return success(MatrixClientPeg.get().sendHtmlMessage(roomId, args, html));
|
||||
}
|
||||
return reject(this.getUsage());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue