Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

表情图标不显示问题 #63

Open
ZhuPeng opened this issue Mar 3, 2019 · 3 comments
Open

表情图标不显示问题 #63

ZhuPeng opened this issue Mar 3, 2019 · 3 comments

Comments

@ZhuPeng
Copy link
Contributor

ZhuPeng commented Mar 3, 2019

表情图标不显示,不知道是什么问题
image

MarkDown 链接:https://github.com/Snailclimb/JavaGuide/blob/master/README.md
也可访问小程序查看具体的显示效果:https://github.com/ZhuPeng/mp-githubtrending

@songkeys
Copy link
Contributor

songkeys commented Mar 3, 2019

你这个issue 和 #62 提到的已经不是 CommonMark 的问题了。

这两个功能属于 GFM (GitHub Flavored Markdown)的范畴,CommonMark 的超集。不应该是 wemark 这个基本库需要解决的。

如果真需要的话,可能得额外加一些扩展功能了……

@ZhuPeng
Copy link
Contributor Author

ZhuPeng commented Mar 3, 2019

好的,我了解一下这个。

@ZhuPeng
Copy link
Contributor Author

ZhuPeng commented Jun 18, 2019

通过渲染前将表情替换为图片解决了,参考:https://github.com/ZhuPeng/mp-githubtrending/blob/master/pages/component/md/md.js#L46

另外有图片的大小问题,需要在图片 load 完成之后设置图片宽高,参考:https://github.com/ZhuPeng/mp-githubtrending/blob/master/third-party/wemark/wemark.js#L41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants