Skip to content

Commit ec6fc88

Browse files
authored
fix: remove git-cliff unreleased markers from changelogs (#1789)
Removes the unnecessary `git-cliff-unreleased` lines (which shouldn't be rendered anyway, as they are intended to be HTML comments).
1 parent 9ecdcac commit ec6fc88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apify-docs-theme/src/markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const incrementHeadingLevels = () => (tree) => {
2020

2121
const removeGitCliffMarkers = () => (tree) => {
2222
visitParents(tree, 'html', (node) => {
23-
const gitCliffMarkerRegex = /generated by git-cliff/ig;
23+
const gitCliffMarkerRegex = /generated by git-cliff|git-cliff-unreleased/ig;
2424
const match = gitCliffMarkerRegex.exec(node.value);
2525

2626
if (match) node.value = '';

0 commit comments

Comments
 (0)