Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/plugins/math/plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export const MathPlugin: IEditorPluginConstructor<MathPluginOptions> = class
const markdownService = this.kernel.requireService(IMarkdownShortCutService);

markdownService?.registerMarkdownShortCut({
regExp: /\$([^$]+)\$\s?$/,
regExp: /\$([^\s$](?:[^$]*[^\s$])?)\$\s?$/,
replace: (textNode, match) => {
const [, code] = match;
const mathNode = $createMathInlineNode(code);
Expand Down
Loading