Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Commit

Permalink
fix: use first line of topic descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 30, 2018
1 parent 23a56c3 commit 8d6e1ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ USAGE
...topics.map(t => {
return compact([
`* [\`${config.bin} ${t.name}\`](docs/${t.name.replace(/:/g, '/')}.md)`,
t.description,
template({config})(t.description || '').trim().split('\n')[0]
]).join(' - ')
}),
].join('\n').trim() + '\n'
Expand Down

0 comments on commit 8d6e1ce

Please sign in to comment.