Skip to content

Commit 17c9b87

Browse files
committed
🐛 fix changelog toc
1 parent 25ab3e4 commit 17c9b87

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/plugin-changelog/src/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import type {
1313
import type { Options, PluginOptions } from "./options";
1414

1515
export const HEADER = `---
16-
hide_table_of_contents: true
1716
{{extraHeader}}
1817
---
1918
@@ -36,9 +35,9 @@ function processSection(section: string) {
3635
return {
3736
title: title.replace(/ \(.*\)/, ""),
3837
content: `
39-
# ${title.replace(/ \(.*\)/, "")}
38+
## ${title.replace(/ \(.*\)/, "")}
4039
41-
${content.replace(/###/g, "##")}
40+
${content}
4241
`,
4342
};
4443
}
@@ -78,7 +77,7 @@ export default async function pluginChangelog(
7877

7978
const pluginOptionsSchema = Joi.object<PluginOptions>({
8079
changelogPath: Joi.string().default("src/changelog/changelog.md"),
81-
changelogHeader: Joi.string().default(HEADER),
80+
changelogHeader: Joi.string().default(""),
8281
});
8382

8483
export function validateOptions({

0 commit comments

Comments
 (0)