fix: Inline math formatting should trigger on last $ only (#10159)

This commit is contained in:
Tom Moor
2025-09-13 15:14:36 +02:00
committed by GitHub
parent f57a189077
commit b39f231927

View File

@@ -1,6 +1,6 @@
import MarkdownIt, { StateBlock, StateInline } from "markdown-it";
export const REGEX_INLINE_MATH_DOLLARS = /\$\$(.+)\$\$/;
export const REGEX_INLINE_MATH_DOLLARS = /\$\$(.+)\$\$$/;
export const REGEX_BLOCK_MATH_DOLLARS = /\$\$\$\s+$/;