Hacker News new | past | comments | ask | show | jobs | submit login
Rich Text in Firebase
3 points by appalam on March 11, 2024 | hide | past | favorite | 5 comments
I am creating a flashcards application for iOS and Android. I am trying to create content first and then hire engineers to help with porgramming. In order to create content I understood the basics of Firebase and how data is stored. The only problem is I want my Flashcard data (frontside and backside) to have Formatted text. bold, italics, highlighted text etc., which i will use later in the app to display rich text.

But how to go forward with this? A team of content creators are working in this project and how do i instruct them to type the content which can be used to convert into producible rich content?




Markdown would work. Then use a markdown renderer like marked in your JS app to convert it to HTML after it comes back from the Firebase API.


Completely agree. Widely known and supported, both rendering and with editors. You'll be able to add a WYSIWYG editor that saves as markdown for little effort on pretty much any platform, especially the web.


Can I suggest you consider using a headless CMS for this? Might save you from reinventing the wheel with Firebase. And usually the output is just some JSON or similar that you can then cache locally in each app.

(Disclaimer: I work for one. But all of them should be able to do this, even the FOSS ones. I think it'll make the editor experience nicer for your content creators.)


Content creators just format the content using whatever tool they like. After you hire developers, you ask them to style the text based on content format . Style will be part of the app codebase . In firebase , you only store the text , not the style


A headless CMS would probably better suited for your needs.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: