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

4.10.0版本代码块存在多余的行号 #421

Closed
tianci-06 opened this issue Jan 8, 2024 · 4 comments
Closed

4.10.0版本代码块存在多余的行号 #421

tianci-06 opened this issue Jan 8, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@tianci-06
Copy link

tianci-06 commented Jan 8, 2024

描述这个Bug

我升级之后发现的,然后我去看文档一看,文档也是出现同样的小问题,作者大大有空可以优化一下,目前只发现vue语言才会出现此问题,多了一行而且行号超出代码块,我自己的还出现了纵向滚动条哈哈哈。
image

版本号

4.10.0

问题重现链接

No response

@imzbf imzbf self-assigned this Jan 8, 2024
@imzbf imzbf added the bug Something isn't working label Jan 8, 2024
@imzbf
Copy link
Owner

imzbf commented Jan 8, 2024

这个居然又跑出来了

@tianci-06
Copy link
Author

image
现在发现JSON语言也是一样的bug

@imzbf imzbf changed the title 一个可有可无的小bug 4.10.0版本代码块存在多余的行号 Jan 15, 2024
@imzbf
Copy link
Owner

imzbf commented Jan 15, 2024

找到问题了,highlight.js@11.9.0存在这个问题,这会在下个大版本中更新,目前对你影响很大的话,你可以手动调整一下你项目的版本,像下面这样

config({
  editorExtensions: {
    highlight: {
      js: 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js'
    }
  }
})

@imzbf
Copy link
Owner

imzbf commented Jan 18, 2024

4.11.0更正了该问题

@imzbf imzbf closed this as completed Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants