File tree Expand file tree Collapse file tree 5 files changed +6
-7
lines changed Expand file tree Collapse file tree 5 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ let { componentName } = require('./config').dev;
2828const componentsInPrototype = [ 'Modal' , 'message' , 'notification' ] ;
2929
3030const MAIN_TEMPLATE = `import 'babel-polyfill';
31- import 'highlight.js/styles/solarized-light.css';
3231import Vue from 'vue';
3332import Vuex from 'vuex';
3433import VueI18n from 'vue-i18n';
Original file line number Diff line number Diff line change 11const path = require ( 'path' ) ;
2- const hljs = require ( 'highlight.js ' ) ;
2+ const Prism = require ( 'prismjs ' ) ;
33const Token = require ( 'markdown-it/lib/token' ) ;
44const cheerio = require ( 'cheerio' ) ;
55const WebpackBar = require ( 'webpackbar' ) ;
@@ -43,12 +43,12 @@ const replaceDelimiters = function(str) {
4343 */
4444
4545const renderHighlight = function ( str , lang ) {
46- if ( ! ( lang && hljs . getLanguage ( lang ) ) ) {
46+ if ( ! ( lang && Prism . languages [ lang ] ) ) {
4747 return '' ;
4848 }
4949
5050 try {
51- return replaceDelimiters ( hljs . highlight ( lang , str , true ) . value ) ;
51+ return replaceDelimiters ( Prism . highlight ( str , Prism . languages [ lang ] , lang ) ) ;
5252 } catch ( err ) { }
5353} ;
5454
Original file line number Diff line number Diff line change 139139 "postcss-loader" : " ^3.0.0" ,
140140 "prettier" : " ^1.18.2" ,
141141 "pretty-quick" : " ^2.0.0" ,
142+ "prismjs" : " ^1.19.0" ,
142143 "querystring" : " ^0.2.0" ,
143144 "raw-loader" : " ^4.0.0" ,
144145 "reqwest" : " ^2.0.5" ,
216217 " lib/**/style/*" ,
217218 " *.less"
218219 ]
219- }
220+ }
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ export default [
8080 component : ( ) => import ( '../antdv-demo/input/demo/index.vue' ) ,
8181 } ,
8282 {
83- path : 'mentions-cn ' ,
83+ path : 'mentions' ,
8484 component : ( ) => import ( '../antdv-demo/mentions/demo/index.vue' ) ,
8585 } ,
8686 {
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ import 'babel-polyfill';
22import '../components/style.js' ;
33import './index.less' ;
44import 'nprogress/nprogress.css' ;
5- import 'highlight.js/styles/solarized-light.css' ;
65import Vue from 'vue' ;
76import Vuex from 'vuex' ;
87import VueI18n from 'vue-i18n' ;
You can’t perform that action at this time.
0 commit comments