Skip to content

Commit

Permalink
markdown_ast incl. kind in heading (for each node)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Droste committed Jul 26, 2018
1 parent 3384c08 commit 75d9bec
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/output/markdown_ast.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,16 @@ function buildMarkdownAST(
.filter(Boolean);
}

return [u('heading', { depth }, [u('text', comment.name || '')])]
return [
u(
'heading',
{ depth },
(comment.kind
? [u('emphasis', [u('text', comment.kind)]), u('text', ' ')]
: []
).concat([u('text', comment.name || '')])
)
]
.concat(githubLink(comment))
.concat(augmentsLink(comment))
.concat(seeLink(comment))
Expand Down

0 comments on commit 75d9bec

Please sign in to comment.