Skip to content

Commit c83bb86

Browse files
committed
Refactor comments
1 parent 34c0fe9 commit c83bb86

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

lib/handlers/dl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function dataList(h, node) {
4343

4444
groups.push(group)
4545

46-
// Group titles and definitions.
46+
// Create items.
4747
length = groups.length
4848
index = -1
4949
content = []

lib/handlers/iframe.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ function iframe(h, node) {
99
var title = node.properties.title
1010

1111
// Only create a link if there is a title.
12-
// We can’t use `content` because conforming HTML parsers treat it as text,
13-
// whereas legacy parsers treat it as HTML, so they will likely contain tags
14-
// that will show up in text.
12+
// We can’t use the content of the frame because conforming HTML parsers treat
13+
// it as text, whereas legacy parsers treat it as HTML, so it will likely
14+
// contain tags that will show up in text.
1515
if (src && title) {
1616
return {
1717
type: 'link',

lib/handlers/media.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function media(h, node) {
3131

3232
visit({type: 'root', children: nodes}, 'link', findLink)
3333

34-
// If the content links to something, or if it’s not phrasing...
34+
// If the content links to something, or if it’s not phrasing
3535
if (linkInFallbackContent || needed(nodes)) {
3636
return nodes
3737
}

lib/util/wrap.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ wrap.needed = needed
66

77
var phrasing = require('mdast-util-phrasing')
88

9-
// Wrap all inline runs of mdast content in `paragraph` nodes.
9+
// Wrap all runs of mdast phrasing content in `paragraph` nodes.
1010
function wrap(nodes) {
1111
var result = []
1212
var length = nodes.length
@@ -48,9 +48,9 @@ function wrap(nodes) {
4848
}
4949
}
5050

51-
// Check if there are non-inline mdast nodes returned. This is needed if a
52-
// fragment is given, which could just be a sentence, and doesn’t need a
53-
// wrapper paragraph.
51+
// Check if there are non-phrasing mdast nodes returned.
52+
// This is needed if a fragment is given, which could just be a sentence, and
53+
// doesn’t need a wrapper paragraph.
5454
function needed(nodes) {
5555
var length = nodes.length
5656
var index = -1

0 commit comments

Comments
 (0)