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

导出 PDF 时主题错误 #1549

Closed
ryanlin1986 opened this issue Jan 25, 2024 · 3 comments
Closed

导出 PDF 时主题错误 #1549

ryanlin1986 opened this issue Jan 25, 2024 · 3 comments
Assignees
Milestone

Comments

@ryanlin1986
Copy link
Contributor

image

可以看到,preview.theme是一个对象而不是文本,应该是preview.theme.current?

@Vanessa219
Copy link
Owner

markdown.theme 也是一个对象

@ryanlin1986
Copy link
Contributor Author

所以应该用JSON.stringify(vditor.options.preview.theme),否则字符串和对象相加,对象toString默认实现是[object Object]

@Vanessa219 Vanessa219 changed the title 导出主题没有正确读取 导出 PDF 时主题错误 Jan 29, 2024
@Vanessa219 Vanessa219 self-assigned this Jan 29, 2024
@Vanessa219 Vanessa219 added this to the 3.9 milestone Jan 29, 2024
@Vanessa219
Copy link
Owner

多谢,稍后修复

Vanessa219 added a commit that referenced this issue Jan 29, 2024
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

2 participants