Skip to content

Commit

Permalink
fix: version separator markdown
Browse files Browse the repository at this point in the history
When there are no notable changes, the delimiter does not behave correctly. In markdown syntax, if there are 3 minus signs immediately after the line, then this is the header. For the delimiter, you must use an empty line in front of it.
  • Loading branch information
gitrequests authored and marcocesarato committed Sep 16, 2021
1 parent 7f3a0d6 commit 08092d2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,13 +534,12 @@ protected function getMarkdownChanges(array $changes): string
}
}
// Add version separator
if (! $this->config->isHiddenVersionSeparator()) {
$changelog .= "\n---\n";
if (!$this->config->isHiddenVersionSeparator()) {
$changelog .= "\n\n---\n";
}

$changelog .= "\n";


return $changelog;
}

Expand Down

0 comments on commit 08092d2

Please sign in to comment.