Skip to content

Commit eb85465

Browse files
Niilo KeinänenNiilo Keinänen
authored andcommitted
Include title in description.md
1 parent dd5f956 commit eb85465

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gulpfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ const build = function () {
1212
reject( err )
1313

1414
let md = buffer.toString()
15+
// Grab very first line of markdown as "Title".
16+
const title = md.split('\n')[0]
17+
1518
// Filter everything out except "Description" chapter.
16-
md = getChapterFromMarkdown(
19+
md = title + '\n' + getChapterFromMarkdown(
1720
md,
1821
/^#+\s+Description/,
1922
)

0 commit comments

Comments
 (0)