Discussions
Line endings in API body
over 2 years ago by [email protected]
Hi there,
I'm trying to set up an integration for my company's readme documentation that will programmatically publish updates made in our internal tool. I've been able to leverage the Update Docs endpoint to almost satisfy the usage; the only issue is that I can't seem to find any way to encode line endings or line breaks into the body.
So far I've tried "\n" - doesn't parse as a new line at all, "%0A" or "&x0A" - both just rendered as plain text, and "
" - parses to a new line, but doesn't escape other styling from the previous line. Ex:
## Here's a Header!<br />This text should be regular paragraph text but is styled as a header
Is there a different encoding I can use to transmit line endings? Is there a different way to programmatically publish these docs?
Thanks