How to create automatic links via [Github Markdown] within CHANGELOG? #21666
-
I’ve noticed a few different changelogs around on GitHub that follow the keepachangelog format, and have auto-created links for each version that link to the diff between the previous version and that version. See: https://github.com/olivierlacan/keep-a-changelog/blob/master/CHANGELOG.md Looking at the raw text, it includes
but the GitHub Markdown-ified version shows “1.0.0” as a link to a diff between the previous version (0.3.0) and 1.0.0. When I created a CHANGELOG with the same format (see https://github.com/carpeliam/concourse-status-amplifier/blob/master/CHANGELOG.md), it has no such cool formatting. How does one get cool CHANGELOG diff formatting? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The
These are link reference definitions. And you’ll see that I hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Thanks Lee, that did it! |
Beta Was this translation helpful? Give feedback.
The
[foo]
syntax is a shorter (and rarely used) way of writing[foo][foo]
. So if you look at the bottom of the file you reference, you’ll see: