Getting Rich Text via API

I have a rich text column called Description that is populated with:

H1

H2

H3

(created by entering H1, then highlighting it and hitting the H1 button, etc.)

When I GET that via API, it looks like:

"Description": "H1\n==\n\nH2\n--\n\n### H3<br />

This is true whether I GET it on the swagger page or GET it from n8n

For some of the supported rich-text formatting options, NocoDB applies custom tags when storing the information internally. I understand your requirement is to retrieve information in markdown format via API.

I have created an issue here to track further.

2 Likes

This is actually valid Markdown syntax. The H1 and H2 headers are just in Setext-style syntax. This is also part of the CommonMark specification.

It would be great if NocoDB would always normalize Markdown headers to ATX-style syntax (#) which is more widespread.