Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

修改markdown为前台解析后样式问题 #3

Open
gthcprh opened this issue Dec 24, 2019 · 1 comment
Open

修改markdown为前台解析后样式问题 #3

gthcprh opened this issue Dec 24, 2019 · 1 comment
Labels
question Further information is requested

Comments

@gthcprh
Copy link

gthcprh commented Dec 24, 2019

我一直用的是blog这个项目,今天看到你的layui更新,也修改了一下自己的项目,之前markdown是后台解析,传给前台。现在是直接把markdown文本传给前台解析,这样的话在js,css没有加载出来之前页面就是markdown原生文本,这个在阿里云小水管服务器上特别明显,每次都先是文本,过会才是网页,你看下有没有什么解决的办法

@Linn-cn Linn-cn added the question Further information is requested label Dec 24, 2019
@Linn-cn
Copy link
Collaborator

Linn-cn commented Dec 24, 2019

@gthcprh 你好,markdown的解析的确是从后台转为了前台解析,因为为了兼容该markdown编辑器的表情解析,原本的后台解析方案下无法解析表情符号,所以暂时还没有想出更好的兼容方案,对于你的问题可以先将文本解析完之后在显示,这样比短暂的暴露markdown文本效果可能会稍好一点,你的建议我们会纳入后续的跟进中。如果你有更好的解决方案,欢迎联系我们。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants