Skip to content

Commit

Permalink
Remove trim dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 10, 2019
1 parent 90b71b8 commit e623ab2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

module.exports = all

var trim = require('trim')
var one = require('./one')

function all(h, parent) {
Expand All @@ -19,13 +18,13 @@ function all(h, parent) {
if (result) {
if (index && nodes[index - 1].type === 'break') {
if (result.value) {
result.value = trim.left(result.value)
result.value = result.value.replace(/^\s+/, '')
}

head = result.children && result.children[0]

if (head && head.value) {
head.value = trim.left(head.value)
head.value = head.value.replace(/^\s+/, '')
}
}

Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"detab": "^2.0.0",
"mdast-util-definitions": "^1.2.0",
"mdurl": "^1.0.1",
"trim": "0.0.1",
"trim-lines": "^1.0.0",
"unist-builder": "^1.0.1",
"unist-util-generated": "^1.1.0",
Expand Down

0 comments on commit e623ab2

Please sign in to comment.