|
|
@@ -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
|