如果增加markdown编辑器,那数据库存什么格式好,还是存成原生的markdown格式,还是转换成html格式存到数据库?
如果将来再换成html编辑器怎么办?
阿神2017-04-17 11:50:36
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.
ringa_lee2017-04-17 11:50:36
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.