升级highlight.js marked (#1473)
* 升级highlight.js marked * 升级highlight.js marked到新版本的兼容
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import marked from 'marked'
|
||||
import {marked} from 'marked'
|
||||
import hljs from 'highlight.js'
|
||||
import 'highlight.js/styles/atelier-plateau-light.css'
|
||||
import 'highlight.js/styles/atom-one-dark.css'
|
||||
import { ElMessage } from 'element-plus'
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
@@ -38,7 +38,8 @@ onMounted(() => {
|
||||
sanitize: false,
|
||||
smartLists: true,
|
||||
smartypants: false,
|
||||
xhtml: false
|
||||
xhtml: false,
|
||||
langPrefix:"hljs language-"
|
||||
})
|
||||
for (const key in props.previewCode) {
|
||||
if (activeName.value === '') {
|
||||
|
Reference in New Issue
Block a user