mysql - 数据库中存什么格式?
PHPz
PHPz 2017-04-17 11:48:36
0
3
891

如果增加markdown编辑器,那数据库存什么格式好,还是存成原生的markdown格式,还是转换成html格式存到数据库?
如果将来再换成html编辑器怎么办?

PHPz
PHPz

学习是最好的投资!

reply all(3)
阿神

Save the native markdown format and then render it when used. It would be too much to save html content
If it is an html editor, the same method is used, and it will be rendered when used.

巴扎黑

Save in native markdown format, use md interpreter when rendering

左手右手慢动作

This depends on your specific needs. Saving it as markdown can save space and facilitate secondary editing; saving it as html can improve display efficiency. At the same time, if it is displayed in multiple terminals, it will save a lot of unnecessary trouble.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template