Skip to content

Commit

Permalink
Don’t print the title if it’s blank
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 committed Jan 1, 2018
1 parent 9a1edd1 commit 2a8d0dd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/language-markdown/printer-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ function genericPrint(path, options, print) {
concat([
line,
printUrl(node.url),
node.title === null
? ""
: concat([line, printTitle(node.title, options)])
node.title
? concat([line, printTitle(node.title, options)])
: ""
])
)
])
Expand Down

0 comments on commit 2a8d0dd

Please sign in to comment.