Skip to content

Commit 8312772

Browse files
committed
fixing formate
1 parent 3d31701 commit 8312772

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

plugins/theme/helpers/index.mjs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,23 +79,19 @@ export default (ctx) => ({
7979
const examples =
8080
comment?.blockTags?.filter((t) => t.tag === "@example") ?? [];
8181
if (!examples.length) return "";
82-
8382
const bodies = examples
8483
.map((tag) => {
8584
const body = ctx.helpers.getCommentParts(tag.content).trim();
86-
if (!body) return null;
87-
85+
if (!body) return null;
8886
if (headingLevel != null) {
8987
const prefix = "#".repeat(headingLevel + 1);
9088
const suffix =
9189
examples.length > 1 ? ` ${examples.indexOf(tag) + 1}` : "";
9290
return `${prefix} Example${suffix}\n\n${body}`;
9391
}
94-
9592
return body;
9693
})
9794
.filter(Boolean);
98-
9995
return bodies.length ? "\n\n" + bodies.join("\n\n") : "";
10096
},
10197
});

plugins/theme/partials/index.mjs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ export default (ctx) => {
4545
const comment = options.multipleSignatures
4646
? model.comment
4747
: model.comment || model.parent?.comment;
48-
4948
const stability = ctx.helpers.stabilityBlockquote(comment);
50-
5149
return [
5250
stability,
5351
stability && "",

0 commit comments

Comments
 (0)