File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
module . exports = all
4
4
5
- var trim = require ( 'trim' )
6
5
var one = require ( './one' )
7
6
8
7
function all ( h , parent ) {
@@ -19,13 +18,13 @@ function all(h, parent) {
19
18
if ( result ) {
20
19
if ( index && nodes [ index - 1 ] . type === 'break' ) {
21
20
if ( result . value ) {
22
- result . value = trim . left ( result . value )
21
+ result . value = result . value . replace ( / ^ \s + / , '' )
23
22
}
24
23
25
24
head = result . children && result . children [ 0 ]
26
25
27
26
if ( head && head . value ) {
28
- head . value = trim . left ( head . value )
27
+ head . value = head . value . replace ( / ^ \s + / , '' )
29
28
}
30
29
}
31
30
Original file line number Diff line number Diff line change 27
27
"detab" : " ^2.0.0" ,
28
28
"mdast-util-definitions" : " ^1.2.0" ,
29
29
"mdurl" : " ^1.0.1" ,
30
- "trim" : " 0.0.1" ,
31
30
"trim-lines" : " ^1.0.0" ,
32
31
"unist-builder" : " ^1.0.1" ,
33
32
"unist-util-generated" : " ^1.1.0" ,
You can’t perform that action at this time.
0 commit comments