Skip to content

导出预览模式渲染挂件 data-export-md 属性 #4971

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

Closed
Zuoqiu-Yingyi opened this issue May 21, 2022 · 0 comments
Closed

导出预览模式渲染挂件 data-export-md 属性 #4971

Zuoqiu-Yingyi opened this issue May 21, 2022 · 0 comments

Comments

@Zuoqiu-Yingyi
Copy link
Contributor

在什么情况下你需要该特性?In what scenarios do you need this feature?

导出预览里面的挂件如果设置了 data-export-md 属性,渲染其 markdown 内容, 避免预览样式与实际导出样式出现差异

描述可能的最优解决方案 Describe the optimal solution

  1. 如果挂件块没有设置 data-export-md 属性,那么导出预览使用 iframe 引入挂件块
  2. 如果挂件块设置了 data-export-md 属性,那么导出预览渲染该属性的 markdown

描述候选的解决方案 Describe the candidate solution

No response

其他信息 Other information

No response

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

1 participant