Skip to content

Commit 75d9bec

Browse files
author
Alexander Droste
committed
markdown_ast incl. kind in heading (for each node)
1 parent 3384c08 commit 75d9bec

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/output/markdown_ast.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,16 @@ function buildMarkdownAST(
317317
.filter(Boolean);
318318
}
319319

320-
return [u('heading', { depth }, [u('text', comment.name || '')])]
320+
return [
321+
u(
322+
'heading',
323+
{ depth },
324+
(comment.kind
325+
? [u('emphasis', [u('text', comment.kind)]), u('text', ' ')]
326+
: []
327+
).concat([u('text', comment.name || '')])
328+
)
329+
]
321330
.concat(githubLink(comment))
322331
.concat(augmentsLink(comment))
323332
.concat(seeLink(comment))

0 commit comments

Comments
 (0)