Skip to content

Commit 4212b38

Browse files
committed
(fix) markdown with same occurences
1 parent 8426c6a commit 4212b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/format-string.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function compileToJSON(str) {
111111
'm'
112112
)
113113
)
114-
if (!match) {
114+
if (!match || !match[1]) {
115115
strLeft = strLeft + char
116116
result.push(strLeft)
117117
} else {

0 commit comments

Comments
 (0)