Skip to content

Markdown in "git tag" message not rendered in Release #22611

Answered by lee-dohm
ahmetb asked this question in New to GitHub
Discussion options

You must be logged in to vote

The process that you’re using copies the contents of a Markdown file into the text attribute of an annotated Git tag. There’s nothing that indicates to GitHub that the contents of that text string are anything other than plain text. So yes, if you do nothing, GitHub uses the annotation as the release notes as plain text. But if you edit the release notes in a field that explicitly supports Markdown, it assumes that you’re using Markdown and does the proper translation.

If you want to automate the process of having a GitHub release object with Markdown release notes, you could write a script to create the release object storing the release notes in the body field via the GitHub API.

I hope…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants