Corbi-Wan KenobiC
Convex Community12mo ago
6 replies
Corbi-Wan Kenobi

Preferred method for saving formatted text in string fields?

It's still early days for me in Convex and my app. For now I need to display a block of text made up of a number of paragraphs. What is the secret sauce to copy/paste into a string field and maintain paragraphs? Eventually I will be building something more sophisticated with TipTap or similar. For now, I'd like this block to have some paragraph breaks. I tried \r and \n thinking it might interpret those but it doesn't seem to.
Was this page helpful?