Should I convert stored Markdown to HTML, or should I just store HTML?

后端 未结 4 1795
闹比i
闹比i 2021-02-02 16:13

Markdown seems to be easier to write and edit than HTML. All HTML editors I\'ve seen output a ton of unnecessary junk. Markdown seems cleaner.

Here is what I\'m thinking

4条回答
  •  死守一世寂寞
    2021-02-02 16:59

    You could store both. The stored markdown is useful if it must be edited multiple times, or if another or better Markdown to HTML translation is developed. The stored HTML is useful, as you say, to avoid regenerating it again and again.

提交回复
热议问题