Formatting newlines gh api posting markdown #148257
Unanswered
eighty4
asked this question in
API and Webhooks
Replies: 2 comments
-
When posting markdown via the GitHub API, ensure proper newline formatting by using double spaces at the end of lines or a blank line between paragraphs. This preserves the intended structure. |
Beta Was this translation helpful? Give feedback.
0 replies
-
from this workflow using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
I've been trying to use
gh api
to create releases with markdown release notes in the body. Part of the content comes from a shell command getting notes from CHANGELOG.md and the rest is markdown formatting around that shell variable.I've tried every combo of technique mentioned on the markdown docs. The newlines from
ls -l /
get rendered as newlines properly but anything I explicitly write from\n
to\\\\\n
doesn't seem to work.Does anyone know the secret to this?
Beta Was this translation helpful? Give feedback.
All reactions