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

highlight如何配置 #5

Open
twitf opened this issue Aug 2, 2018 · 1 comment
Open

highlight如何配置 #5

twitf opened this issue Aug 2, 2018 · 1 comment

Comments

@twitf
Copy link

twitf commented Aug 2, 2018

highlight 自定义预览里的代码块使用的言语解析,接收值 code,如果使用 highlightjs,iView Editor 默认集成了样式 Function  

这里的highlight这个选项需要如何设置 希望文档能给一个示例

@ycs77
Copy link

ycs77 commented Aug 24, 2018

import hljs from 'highlightjs/highlight.pack.js'
highlight (code) {
  return hljs.highlightAuto(code).value
}

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

2 participants