File tree 5 files changed +7
-7
lines changed
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function toMdast(tree, options) {
15
15
16
16
h . nodeById = byId
17
17
h . baseFound = false
18
- h . frozenBaseURL = null
18
+ h . frozenBaseUrl = null
19
19
20
20
h . handlers = xtend ( handlers , settings . handlers || { } )
21
21
h . augment = augment
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ module.exports = base
4
4
5
5
function base ( h , node ) {
6
6
if ( ! h . baseFound ) {
7
- h . frozenBaseURL = node . properties . href || null
7
+ h . frozenBaseUrl = node . properties . href || null
8
8
h . baseFound = true
9
9
}
10
10
}
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ function resolve(h, url) {
8
8
}
9
9
10
10
/* istanbul ignore next - ignored for older Node */
11
- if ( h . frozenBaseURL && typeof URL !== 'undefined' ) {
12
- return String ( new URL ( url , h . frozenBaseURL ) )
11
+ if ( h . frozenBaseUrl && typeof URL !== 'undefined' ) {
12
+ return String ( new URL ( url , h . frozenBaseUrl ) )
13
13
}
14
14
15
15
return url
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ a streak of white-space in a text node contains a newline.
89
89
90
90
##### Returns
91
91
92
- [ ` MDASTNode ` ] [ mdast-node ] .
92
+ [ ` MdastNode ` ] [ mdast-node ] .
93
93
94
94
##### Notes
95
95
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ test('fixtures', function(t) {
111
111
config = JSON . parse ( config )
112
112
}
113
113
114
- var fromHTML = unified ( )
114
+ var fromHtml = unified ( )
115
115
. use ( html )
116
116
. use ( function ( ) {
117
117
return transformer
@@ -121,7 +121,7 @@ test('fixtures', function(t) {
121
121
} )
122
122
. use ( stringify )
123
123
124
- var tree = remove ( fromHTML . runSync ( fromHTML . parse ( input ) ) , true )
124
+ var tree = remove ( fromHtml . runSync ( fromHtml . parse ( input ) ) , true )
125
125
126
126
// Replace middots with spaces (useful for break nodes).
127
127
output = output . replace ( / · / g, ' ' )
You can’t perform that action at this time.
0 commit comments