the community I'm looking for some advice about rich texts. Currently the problem: what is the best way to store and manage rich text content on the backend (in db). Why it seems like a problem because we could have multiple platforms: desktop, mobile, web and this bring problems.
As I know we have 3 options, I would be appreciated if you provide me something else:
1) store it like HTML, which is a bad solution for me, because what about editing it on mobile, on the desktop then? For sure all will be okay on the web because of plants of libraries.
2)store it in markdown manner, I think something like that currently used by StackOverflow, not some real problems, but then each client needs to parse markdown text, and for me, it is not so convenient to manage photos along with the text.
3) store it like full json like that:
{
"type": "Paragraph"
"text": "some text"
}
which is also not so convenient and takes a long time to develop I suppose, it is the trickiest way. I'm not sure, but maybe there are devs or ex-devs from Jira, StackOverflow, Google Docs or other systems which use rich text, how did you figure out this problem, and maybe you have some advice and practices. I would be appreciated for all your replies.