Skip to content

Commit cc3ea7d

Browse files
committed
version 0.9.6
1 parent 427ddba commit cc3ea7d

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "markdown-it-texmath",
3-
"version": "0.9.5",
3+
"version": "0.9.6",
44
"description": "markdown-it extension for rendering TeX Math",
55
"keywords": [
66
"TeX",

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ Use following links for `texmath.js` and `texmath.css`
123123
But if someone wants to help here out, pull requests are always welcome.
124124

125125
## CHANGELOG
126+
### [0.9.6] on November 16, 2021
127+
* Small bug in 'dollars' inline-display-mode regex fixed.
126128
### [0.9.5] on November 12, 2021
127129
* More Optimization done with the 'dollars' regexes.
128130
### [0.9.4] on November 12, 2021

test/bug-dollars.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
$$
2727
a+\\$ = \\text{\\$text...\\$} \\$
2828
$$
29+
30+
inline $$x^2$$ formula
2931
`
3032
document.addEventListener("DOMContentLoaded", () => {
3133
const md = markdownit().use(texmath, { engine: katex, delimiters: 'dollars' });

texmath.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ texmath.rules = {
309309
dollars: {
310310
inline: [
311311
{ name: 'math_inline_double',
312-
rex: /\${2}([^]*?)[^\\]\${2}/gy,
312+
rex: /\${2}([^]*?[^\\])\${2}/gy,
313313
tmpl: '<section><eqn>$1</eqn></section>',
314314
tag: '$$',
315315
displayMode: true,

0 commit comments

Comments
 (0)