前言 笔者认为,一个博客网站,最核心的是阅读体验. 在开发StarBlog的过程中,最耗时的恰恰也是文章的展示部分功能. 最开始还没研究出来如何很好的使用后端渲染,所以只能先用Editor.md组件做前端渲染,过渡一下.前端渲染我是不满意的,因为性能较差,页面加载出来还会闪一下,有割裂感,影响体验. 现在我已经做出了比较完善的后端渲染方案,前端渲染就可以直接退休了.本文介绍StarBlog博客开发过程中的各种Markdown渲染方案(主要是介绍后端渲染). 两种方案 前端渲染 使用 Editor…