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

pjax适配性问题 #12

Open
chengzhongxue opened this issue Oct 8, 2023 · 3 comments
Open

pjax适配性问题 #12

chengzhongxue opened this issue Oct 8, 2023 · 3 comments

Comments

@chengzhongxue
Copy link

1768b19f79755763d2a60dffbcc0345

katex调用方法封装,提供给主题调用,解决pjax适配性问题

@xinkeng0
Copy link
Member

xinkeng0 commented Oct 9, 2023

我有一些事项需要确认。

katex调用方法封装,提供给主题调用,解决pjax适配性问题

可以大致描述下需要KatexPlugin暴露renderMath到window的原因吗?

如果我们确认通过这项提案,#13 中,关于挂载到window对象下的函数名称,需要讨论确认。
暴露的函数不可以污染window,比如它可以是:window._pluginKatex.renderMath

@chengzhongxue
Copy link
Author

document.addEventListener("pjax:complete", function () {
    window.renderKaTex();
 });

pjax兼容性问题,需要使用这个重新调用一次

@chengzhongxue
Copy link
Author

@gengxiaoxiaoxin 可以用这样的方式去适配?还是说有更好的方式

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

No branches or pull requests

2 participants