Просмотр исходного кода

disable Detach/RestoreCodeBlockInterceptor

Yuki Takei 8 лет назад
Родитель
Сommit
11782542cd
1 измененных файлов с 11 добавлено и 6 удалено
  1. 11 6
      resource/js/util/Crowi.js

+ 11 - 6
resource/js/util/Crowi.js

@@ -4,10 +4,13 @@
 
 import axios from 'axios'
 import InterceptorManager from '../../../lib/util/interceptor-manager';
-import {
-  DetachCodeBlockInterceptor,
-  RestoreCodeBlockInterceptor,
-} from './interceptor/detach-code-blocks';
+
+//// disable Detach/Restore interceptors
+//// because markdown-it handles emoji and Linker in code blocks well -- 2018.02.01 Yuki Takei
+// import {
+//   DetachCodeBlockInterceptor,
+//   RestoreCodeBlockInterceptor,
+// } from './interceptor/detach-code-blocks';
 
 export default class Crowi {
   constructor(context, window) {
@@ -28,8 +31,10 @@ export default class Crowi {
 
     this.interceptorManager = new InterceptorManager();
     this.interceptorManager.addInterceptors([
-      new DetachCodeBlockInterceptor(this),
-      new RestoreCodeBlockInterceptor(this),
+      //// disable Detach/Restore interceptors
+      //// because markdown-it handles emoji and Linker in code blocks well -- 2018.02.01 Yuki Takei
+      // new DetachCodeBlockInterceptor(this),
+      // new RestoreCodeBlockInterceptor(this),
     ]);
 
     // FIXME