mirror of
https://github.com/darksaid98/auto-changelog.git
synced 2026-12-02 14:38:47 +00:00
fix: backticks placement issue with use-github-autolink disabled (#221)
* fix: don't quote links in backticks with use-github-autolink disabled Fixes an issue where some links would be quoted in backticks causing them to be rendered as code instead of markdown links. * fix: add suggestion to src/footer.ts Co-authored-by: Ardalan Amini <[email protected]> Signed-off-by: darksaid98 <[email protected]> * fix: add suggestion to src/nodes/commit-hash.ts Co-authored-by: Ardalan Amini <[email protected]> Signed-off-by: darksaid98 <[email protected]> * fix: add suggestion to tests/footer.test.ts Co-authored-by: Ardalan Amini <[email protected]> Signed-off-by: darksaid98 <[email protected]> * fix: add suggestion to tests/nodes/commit-hash.test.ts Co-authored-by: Ardalan Amini <[email protected]> Signed-off-by: darksaid98 <[email protected]> --------- Signed-off-by: darksaid98 <[email protected]> Co-authored-by: Ardalan Amini <[email protected]>
This commit is contained in:
1 parent
f54a10a737
commit
03d7b4ed20
4 files changed
+4
-4
No files matched your search
@@ -59,7 +59,7 @@ export class CommitHashNode extends Node {
|
||||
if (shouldUseGithubAutolink) return sha;
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-magic-numbers
|
||||
return `\`[${ sha.slice(0, 7) }](${ repo.url }/commit/${ sha })\``;
|
||||
return `[\`${ sha.slice(0, 7) }\`](${ repo.url }/commit/${ sha })`;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user