File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 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) {
4343
4444 groups . push ( group )
4545
46- // Group titles and definitions .
46+ // Create items .
4747 length = groups . length
4848 index = - 1
4949 content = [ ]
Original file line number Diff line number Diff 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' ,
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ wrap.needed = needed
66
77var 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.
1010function 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.
5454function needed ( nodes ) {
5555 var length = nodes . length
5656 var index = - 1
You can’t perform that action at this time.
0 commit comments