scripts/generate-changelog.mjs/createChangelog
async function createChangelog(title, user, prNumber, category) {
  const changelogTemplatePath = path.resolve(
    __dirname,
    "../changelog_unreleased/TEMPLATE.md"
  );
  const changelogTemplate = await fs.readFile(changelogTemplatePath, "utf8");

  const titlePart = "Title";
  const prNumberPart = "#XXXX";
  const userPart = "@user";
  const codeBlockPart = "```jsx\n";
  const inputCommentPart = "// Input\n";
  const stableCommentPart = "// Prettier stable\n";
  const mainCommentPart = "// Prettier main\n";

  const syntax = getSyntaxFromCategory(category);

  return changelogTemplate
    .replace(titlePart, title)
    .replace(prNumberPart, `#${prNumber}`)
    .replace(userPart, `@${user}`)
    .replace(codeBlockPart, `\`\`\`${syntax}\n`)
    .replace(inputCommentPart, getCommentForSyntax(syntax, "Input") + "\n")
    .replace(
      stableCommentPart,
      getCommentForSyntax(syntax, "Prettier stable") + "\n"
    )
    .replace(
      mainCommentPart,
      getCommentForSyntax(syntax, "Prettier main") + "\n"
    );
}