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

enable Detach/Restore CodeBlockInterceptor

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

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

@@ -5,12 +5,10 @@
 import axios from 'axios'
 import InterceptorManager from '../../../lib/util/interceptor-manager';
 
-//// 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';
+import {
+  DetachCodeBlockInterceptor,
+  RestoreCodeBlockInterceptor,
+} from './interceptor/detach-code-blocks';
 
 export default class Crowi {
   constructor(context, window) {
@@ -31,10 +29,8 @@ export default class Crowi {
 
     this.interceptorManager = new InterceptorManager();
     this.interceptorManager.addInterceptors([
-      //// 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),
+      new DetachCodeBlockInterceptor(this),
+      new RestoreCodeBlockInterceptor(this),
     ]);
 
     // FIXME