stream-markdown-parser 0.0.58-beta.2 → 0.0.58-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +14 -12
package/dist/index.js
CHANGED
|
@@ -8926,7 +8926,8 @@ function applyMath(md, mathOpts) {
|
|
|
8926
8926
|
}
|
|
8927
8927
|
}
|
|
8928
8928
|
if ((!allowLoading || strict) && !found) return false;
|
|
8929
|
-
|
|
8929
|
+
const hasMarkdownPrefix = /^\s*!\[/.test(content);
|
|
8930
|
+
if (!(openDelim === "$$" ? !hasMarkdownPrefix : openDelim === "[" ? isPlainBracketMathLike(content) : isMathLike(content))) return false;
|
|
8930
8931
|
const token = s.push("math_block", "math", 0);
|
|
8931
8932
|
token.content = normalizeStandaloneBackslashT(content);
|
|
8932
8933
|
token.markup = openDelim === "$$" ? "$$" : openDelim === "[" ? "[]" : "\\[\\]";
|