How should markdown be saved and rendered?

Michael Lee 🍕 - Dec 13 '17 - - Dev Community

I'm trying to figure out the best approach for saving markdown to a database and then rendering.

Should the raw markdown be saved as a string into the database and then returned and converted to HTML before rendered on the front end? Or should the markdown be converted to HTML and then saved as a string into the database? Then it could just be passed onto the front end as raw HTML.

My setup:

  • MongoDB for db
  • Node for backend
  • Ember.js for frontend

Would love to know what approaches are being used out there.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player