Skip to content

Commit 0a6f19b

Browse files
committed
Refactor comment-style
1 parent 6047103 commit 0a6f19b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

index.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ function style(node, relative) {
1212
return null
1313
}
1414

15-
/* This can only occur for `'atx'` and `'atx-closed'`
16-
* headings. This might incorrectly match `'atx'`
17-
* headings with lots of trailing white space as an
18-
* `'atx-closed'` heading. */
15+
// This can only occur for `'atx'` and `'atx-closed'` headings.
16+
// This might incorrectly match `'atx'` headings with lots of trailing white
17+
// space as an `'atx-closed'` heading.
1918
if (!last) {
2019
if (pos.column - 1 <= depth * 2) {
2120
return consolidate(depth, relative)
@@ -35,8 +34,7 @@ function style(node, relative) {
3534
return consolidate(depth, relative)
3635
}
3736

38-
/* Get the probable style of an atx-heading, depending on
39-
* preferred style. */
37+
// Get the probable style of an atx-heading, depending on preferred style.
4038
function consolidate(depth, relative) {
4139
return depth < 3
4240
? 'atx'

0 commit comments

Comments
 (0)