File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ function dataList(h, node) {
43
43
44
44
groups . push ( group )
45
45
46
- // Group titles and definitions .
46
+ // Create items .
47
47
length = groups . length
48
48
index = - 1
49
49
content = [ ]
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ function iframe(h, node) {
9
9
var title = node . properties . title
10
10
11
11
// 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.
15
15
if ( src && title ) {
16
16
return {
17
17
type : 'link' ,
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ function media(h, node) {
31
31
32
32
visit ( { type : 'root' , children : nodes } , 'link' , findLink )
33
33
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…
35
35
if ( linkInFallbackContent || needed ( nodes ) ) {
36
36
return nodes
37
37
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ wrap.needed = needed
6
6
7
7
var phrasing = require ( 'mdast-util-phrasing' )
8
8
9
- // Wrap all inline runs of mdast content in `paragraph` nodes.
9
+ // Wrap all runs of mdast phrasing content in `paragraph` nodes.
10
10
function wrap ( nodes ) {
11
11
var result = [ ]
12
12
var length = nodes . length
@@ -48,9 +48,9 @@ function wrap(nodes) {
48
48
}
49
49
}
50
50
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.
54
54
function needed ( nodes ) {
55
55
var length = nodes . length
56
56
var index = - 1
You can’t perform that action at this time.
0 commit comments