-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
新的API或者回调函数的建议 #4491
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
Comments
感谢您的回复。 能在 theme.js 中访问到思源笔记中的 Protyle 和 Lute 实列吗?有文档或者参考demo的链接吗? |
目前没有封装相关的方法。Lute 的实列挂载在 Protyle 的实例上 |
谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在什么情况下你需要该特性? In what scenarios do you need this function?
自定义的导出:
在导出 pdf 和 html 前,提供回调函数,允许通过 theme.js 改变生成的 html 代码块。
自定义解析行内块
可以在行内块上保存(如code)自定义的属性,或者允许自定义 json 解析和渲染。
是否可以在 html 解析完成,或者笔记渲染完成时的回调函数,想调用 theme.js 中的函数执行自定义渲染。
例如:把行内代码块:

#对外公开|0.0.1#(green)
渲染为其实目前已经借用 theme.js 实现,但无法导出,因为导出为 pdf 和 html 没有调用 theme.js。
描述可能的最优解决方案 Describe the optimal solution
描述候选的解决方案 Describe the candidate solution
其他信息 Other information
希望思源笔记越来越好! 加油!
The text was updated successfully, but these errors were encountered: