Skip to content

Commit 34c0fe9

Browse files
committed
Refactor to shout less
1 parent ff209fc commit 34c0fe9

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function toMdast(tree, options) {
1515

1616
h.nodeById = byId
1717
h.baseFound = false
18-
h.frozenBaseURL = null
18+
h.frozenBaseUrl = null
1919

2020
h.handlers = xtend(handlers, settings.handlers || {})
2121
h.augment = augment

lib/handlers/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = base
44

55
function base(h, node) {
66
if (!h.baseFound) {
7-
h.frozenBaseURL = node.properties.href || null
7+
h.frozenBaseUrl = node.properties.href || null
88
h.baseFound = true
99
}
1010
}

lib/util/resolve.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ function resolve(h, url) {
88
}
99

1010
/* 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))
1313
}
1414

1515
return url

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ a streak of white-space in a text node contains a newline.
8989

9090
##### Returns
9191

92-
[`MDASTNode`][mdast-node].
92+
[`MdastNode`][mdast-node].
9393

9494
##### Notes
9595

test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ test('fixtures', function(t) {
111111
config = JSON.parse(config)
112112
}
113113

114-
var fromHTML = unified()
114+
var fromHtml = unified()
115115
.use(html)
116116
.use(function() {
117117
return transformer
@@ -121,7 +121,7 @@ test('fixtures', function(t) {
121121
})
122122
.use(stringify)
123123

124-
var tree = remove(fromHTML.runSync(fromHTML.parse(input)), true)
124+
var tree = remove(fromHtml.runSync(fromHtml.parse(input)), true)
125125

126126
// Replace middots with spaces (useful for break nodes).
127127
output = output.replace(/·/g, ' ')

0 commit comments

Comments
 (0)