Skip to content

Code blocks are not syntax highlighted when exporting to PDF/image/HTML #12378

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
MuuToT opened this issue Sep 2, 2024 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@MuuToT
Copy link

MuuToT commented Sep 2, 2024

导出支持代码高亮

In what scenarios do you need this feature?

经尝试 导出 PDF 图片 HTML 均无代码高亮
代码高亮对于代码来说还是蛮重要的, 在阅读体验上也不在一个层次上,
所以希望D大支持下 导出后的文件支持代码高亮

Describe the optimal solution

语雀的PDF导出支持代码高亮 如下图(语雀导出的PDF文件)
image

Describe the candidate solution

No response

Other information

No response

@TCOTC
Copy link
Contributor

TCOTC commented Sep 2, 2024

我可以复现,导出预览是没有代码高亮的:

image

另外关联:#11456

@88250 88250 self-assigned this Sep 2, 2024
@88250 88250 added the Bug label Sep 2, 2024
@88250 88250 added this to the 3.1.5 milestone Sep 2, 2024
@88250 88250 changed the title 导出支持代码高亮 Code blocks are not syntax highlighted when exporting to PDF/images Sep 2, 2024
@88250 88250 changed the title Code blocks are not syntax highlighted when exporting to PDF/images Code blocks are not syntax highlighted when exporting to PDF/image/HTML Sep 2, 2024
88250 added a commit to 88250/lute that referenced this issue Sep 2, 2024

Verified

This commit was signed with the committer’s verified signature.
…F/image/HTML siyuan-note/siyuan#12378
@Vanessa219
Copy link
Member

1989ade

@Vanessa219 Vanessa219 self-assigned this Sep 2, 2024
@88250 88250 closed this as completed Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants