documentation-markdown-themes
Advanced tools
Comparing version 13.1.1 to 13.1.2
{ | ||
"name": "documentation-markdown-themes", | ||
"description": "a documentation generator with markdown theme support", | ||
"version": "13.1.1", | ||
"version": "13.1.2", | ||
"author": "Tom MacWright", | ||
@@ -6,0 +6,0 @@ "homepage": "https://documentation.js.org", |
@@ -220,3 +220,3 @@ const u = require('unist-builder'); | ||
[u('text', isSingle ? 'Example:' : 'Examples:')].concat( | ||
comment.examples.reduce(function(memo, example) { | ||
comment.examples.reduce(function (memo, example) { | ||
const language = hljsOptions.highlightAuto | ||
@@ -321,3 +321,3 @@ ? hljs.highlightAuto(example.description).language | ||
u('listItem', [ | ||
u('strong', [u('text', 'See: ')].concat(see.children)) | ||
u('strong', [u('text', 'See: ')].concat(see.description.children)) | ||
]) | ||
@@ -477,2 +477,9 @@ ) | ||
) | ||
.concat( | ||
!!comment.members.events.length && | ||
comment.members.events.reduce( | ||
(memo, child) => memo.concat(generate(depth + 1, child)), | ||
[] | ||
) | ||
) | ||
.concat(seeLink(comment)) | ||
@@ -479,0 +486,0 @@ |
1943434
9677