Skip to content

Commit 8a56574

Browse files
authored
Update Copy.js
修复行内公式
1 parent 9e43681 commit 8a56574

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component/Copy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class Copy extends Component {
6868

6969
// 形成结果 <span class="katex"><img class="math-img-inline"/></span>
7070
solveInlineMath = async () => {
71-
const mathReg = /\$(.*?)\$/g;
71+
const mathReg = /\$(\S*?)\$/g;
7272
const content = this.props.content.content;
7373

7474
let mathInline = content.match(mathReg);

0 commit comments

Comments
 (0)