Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit75d9bec

Browse files
author
Alexander Droste
committed
markdown_ast incl. kind in heading (for each node)
1 parent3384c08 commit75d9bec

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

‎src/output/markdown_ast.js‎

Lines changed: 10 additions & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp