Skip to content

Commit 44ded64

Browse files
committed
Remove dependency
1 parent 6e7e94f commit 44ded64

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import {decodeEntity} from 'parse-entities/decode-entity.js'
2-
import repeatString from 'repeat-string'
32
import {stringifyEntitiesLight} from 'stringify-entities'
43
import {visitParents} from 'unist-util-visit-parents'
54
import containerFlow from 'mdast-util-to-markdown/lib/util/container-flow.js'
@@ -308,7 +307,7 @@ function fence(node) {
308307
size = 1
309308
}
310309

311-
return repeatString(':', size)
310+
return ':'.repeat(size)
312311

313312
function onvisit(node, parents) {
314313
let index = parents.length

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
"dependencies": {
3636
"mdast-util-to-markdown": "^0.6.0",
3737
"parse-entities": "^3.0.0",
38-
"repeat-string": "^1.0.0",
3938
"stringify-entities": "^4.0.0",
4039
"unist-util-visit-parents": "^4.0.0"
4140
},

0 commit comments

Comments
 (0)